-
Notifications
You must be signed in to change notification settings - Fork 586
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
Update MSBuild.StructuredLogger to latest #2744
Comments
Welcome to the FAKE community! Thank you so much for creating your first issue and therefore improving the project! |
FAKE automatically creates binlogs for most builds that are orchestrated through FAKE, and then reads the warnings/errors directly from the binlog to prevent any parsing issues. As a result, it needs to keep bumped! It should be no impact to the rest of FAKE to bump this, so I'd encourage @yazeedobaid to do so at the earliest opportunity! |
How do you guys specify a version? Where does 2.1.545 come from in paket.lock? I'm hitting this problem while building dotnet/msbuild#8478 (comment) with FAKE. I searched the Farkle repo, and I only found these occurrences: Doesn't seem to be the "source" of where this value is flowing from? |
As a workaround, you can just reference the most recent version of |
The latest version (2.2.206) version of MSBuild.StructuredLogger fails with a ArgumentNullException. It seems it's due to localized string not being initialized. This can be fixed by adding the following line at the start of build script:
This could be done directly in Fake to avoid the problem |
do you have the full callstack? mind filing an issue on https://github.com/KirillOsenkov/MSBuildStructuredLog/issues/new I want to fix this (and I thought I did) |
In addition, for the May release we should finally ship a version of binlogs that are forward-compatible, so you could update to the version to be released then and then not have to update ever again - until/unless you need support for a new kind of message that is introduced. But since FAKE's binlog integration is very simple (just warnings/errors) that should be enough for quite a long time. |
I tried to update the structured log lib to a newer version in the FAKE build a while ago and it caused the integration tests to fail, possibly because it depends on Microsoft.Build.Framework 17.5.0 which doesn't have a .NET 6 TFM anymore, so I'm not sure what the procedure to update here should be as long as everything is here is built around .NET 6.0? |
Is this the issue you're running into? |
Basically if things fail we need to investigate and fix them. |
it was something like that (the CI build attempt from here seems to have expired and deleted the logs though). Also sounds similar to #2722 |
@KirillOsenkov FYI I think I'm running in the same issue here I have added
Call site:
EDIT: the workaround by @thinkbeforecoding does work |
my apologies, I haven't gotten the time to get to this. For now please use Strings.Initialize() and I'll fix it properly at some point later. |
@Thorium have we already updated that? |
I think the latest version should fix this without calling Strings.Initialize() manually |
Last I looked, doing the update was blocked by the FAKE build being pinned to Microsoft.Build 17.3.2 and the latest StructuredLogger needing 17.5.0 (and the update to that may or may not be blocked by MSBuild 17.5 having removed the .NET 6.0 TFM in favour of .NET 7.0) |
I don't think so.
...and it compiles. |
I'm not sure how this works, but this seems to be using an old version of the
MSBuild.StructuredLogger package:
FAKE/paket.lock
Line 805 in 13e3033
The latest version is:
https://www.nuget.org/packages/MSBuild.StructuredLogger/2.1.814
Without the latest version, builds fail with:
The text was updated successfully, but these errors were encountered: