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
MSBuild 16.6 breakage #2515
Comments
Welcome to the FAKE community! Thank you so much for creating your first issue and therefore improving the project! |
Confirmed. This is the same issue if you have .NET 5 installed - FAKE doesn't know the log file version and throws a wobbly. |
I also had this issue, but it was fixed after updating fake-cli and all packages. |
Confirmed. |
Hi, What do I need to do regarding OS: Windows 10 2004 Our paket.dependencies:
This worked 3-5 days ago. |
Unless I'm missing something, updating FAKE doesn't help at all. |
Yeah, you need to update the msbuild log viewer thing. |
These are the current dependencies that we use:
I have noticed that most of the repos that have fixed this issue also have Any idea how can I find msbuild log viewer package? |
Fake.DotNet.MSBuild depends on MSBuild.StructuredLogger, which you need to update. Sorry, I'm on the phone and didn't know the exact package name before. |
It already used the latest one and forcing it to install the latest one didn't work either.
Still not working. This is the upgrade script:
And this are the resolved dependencies:
|
I doubt it will help, but can you set the env var FAKE_DETAILED_ERRORS to true? I think then it will show the exact stack trace. Maybe that gives a hint. From your description, I believe you did everything correctly. (It's 4am, so I'm going to sleep ...) |
Thanks for the help at such a late hour, I'm from Australian, so it's noon on our side. :) I managed to find the problem! A new upgrade script should help others who have a similar problems and struggle to understand why it's not working.
|
I haven't looked into details but from what I read is that all I need to do is updates packages and release again to solve this? Or is there something else to do here? |
Partially correct. |
This did the trick for me, thanks! |
As we now directly depend on the updated |
Error: > Unsupported log file format. Latest supported version is 8, the log file has version 9. Solution: Update group netcorebuild (`dotnet paket update --group netcorebuild`). See fsprojects/FAKE#2515 While finding the issue: Update paket to dotnet tool (was first thing I tried...)
* dotnet paket update -g Fake-Build * Fixes fsprojects/FAKE#2515
Description
We use FAKE to invoke msbuild in order to build .NET Framework projects. It appears that with a recent minor version upgrade of Visual Studio (and hence MSBuild) from 16.3 or 4 to 16.6 that Fake.DotNet.MSBuild.build has stopped working with default settings
Repro steps
Expected behavior
Project builds.
Actual behavior
Receive an error like the following.
Known workarounds
Set DisableInternalBinLog flag to prevent FAKE processing MSBuild binary logs and sidestep any sort of log format incongruence.
I'm guessing this might possibly be fixed / worked around by using a different version of StructuredLogger?
Related information
The text was updated successfully, but these errors were encountered: