-
Notifications
You must be signed in to change notification settings - Fork 588
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unsupported log file format. Latest supported version is 9, the log file has version 13. #2595
Comments
Welcome to the FAKE community! Thank you so much for creating your first issue and therefore improving the project! |
If this could be caught and provide guidance as to which setting to adjust in the handling of this error, it would be stellar, because I think MS is going to keep adjusting their log file version going forward. |
afaik you need a new version of MSBuild.StructuredLogger. If I remember right you can just add the latest version to your own dependencies block, then it should work. |
Thanks @0x53A, I'll give it a try when I deal with the build scripts again. Any pointers on where / how this is all used in FAKE code itself, in case someone wants to investigate how to better report to / guide the user for similar upcoming issues on msbuild releases in the future? |
Just as a question but why does FAKE fail at all if it cannot read the MSBuild log file instead of just printing a warning? |
Ever since installing 16.10, I'm getting errors with DotNet.build as well. The error message is complaining about a string format ArgumentNullException. However I'm posting this here because I noticed the stack trace also contains a reference to BinLog.fs. I can't find a way to disable that for dotnet.build though. Here's the stack trace: Script reported an error: |
Or simply deleting the build.fsx.lock-File. |
This is a bit of an odd process, but simply changing the actual dependency in you lock file (paket.lock or build.fsx.lock, depending on your setup) just works fine:
|
AppVeyor was failing[1] with (which seemed to be same issue as this one: [2]): Script reported an error: -> BuildFailedException: Target 'Build' failed. -> One or more errors occurred. (Unsupported log file format. Latest supported version is 9, the log file has version 13.) -> NotSupportedException: Unsupported log file format. Latest supported version is 9, the log file has version 13 [1] https://ci.appveyor.com/project/sergey-tihon/fsharpx-collections/builds/40656359 [2] fsprojects/FAKE#2595
Upgrading MSBuild.StructuredLogger didn't work for me. I've tried 3 different approaches already and my AppVeyor CI still fails: fsprojects/FSharpx.Collections#176 Any hint from someone please? |
You still have an old
you can update the lock file for that and it should fix the problem |
Just changed the lock file manually (and pushed), there are no more occurrences of the old version, but CI is still failing and I still see that 2.1.215 version in the AppVeyor log. So I wonder if some dependency I have depends on an old version so I need to upgrade that dependency instead? How can I query paket to get this info? Sorry I'm a paket noob. Thanks in advance for any further help. |
AppVeyor was failing[1] with (which seemed to be same issue as this one: [2]): Script reported an error: -> BuildFailedException: Target 'Build' failed. -> One or more errors occurred. (Unsupported log file format. Latest supported version is 9, the log file has version 13.) -> NotSupportedException: Unsupported log file format. Latest supported version is 9, the log file has version 13 [1] https://ci.appveyor.com/project/sergey-tihon/fsharpx-collections/builds/40656359 [2] fsprojects/FAKE#2595
AppVeyor was failing[1] with (which seemed to be same issue as this one: [2]): Script reported an error: -> BuildFailedException: Target 'Build' failed. -> One or more errors occurred. (Unsupported log file format. Latest supported version is 9, the log file has version 13.) -> NotSupportedException: Unsupported log file format. Latest supported version is 9, the log file has version 13 [1] https://ci.appveyor.com/project/sergey-tihon/fsharpx-collections/builds/40656359 [2] fsprojects/FAKE#2595
AppVeyor was failing[1] with (which seemed to be same issue as this one: [2]): Script reported an error: -> BuildFailedException: Target 'Build' failed. -> One or more errors occurred. (Unsupported log file format. Latest supported version is 9, the log file has version 13.) -> NotSupportedException: Unsupported log file format. Latest supported version is 9, the log file has version 13 [1] https://ci.appveyor.com/project/sergey-tihon/fsharpx-collections/builds/40656359 [2] fsprojects/FAKE#2595
Can you please try the new alpha releases and see if the issue still exists? Thanks |
The fix for this issue is included in release 5.21.0 Thanks |
The bin logger leads to a NotSupportedException if the MSBuild version uses a log version not supported by FAKE. FAKE 6.0.0 cannot deal with MSBuild 17.5.0.6101. See also: fsprojects/FAKE#2595
This happens with FAKE 6.0.0 and MSBuild 17.5.0.6101 again. |
After updating VS to 16.10 release, I'm getting this out of MSBuild tasks:
Current work around is to adjust
Fake.DotNet.MSBuildParams
:FAKE version: 5.20.4
The text was updated successfully, but these errors were encountered: