-
Notifications
You must be signed in to change notification settings - Fork 4k
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
Fix reporting of MSBuild warnings in MSBuildWorkspace #75183
base: main
Are you sure you want to change the base?
Conversation
} | ||
} | ||
|
||
private static string GetMSBuildFailedMessage(string projectFilePath, string message) | ||
private static string GetMSBuildFailedMessage(string projectFilePath, string message, WorkspaceDiagnosticKind diagnosticKind) | ||
=> RoslynString.IsNullOrWhiteSpace(message) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It might just be easier to fill in a blank message with "no message" or something so the log entry would be a bit clearer we're missing one (and it reduces the number of strings we have). That said, happy to keep this as is since you're just maintaining behavior.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have made the change.
<value>MSBuild failed when processing the file '{0}' with message: {1}</value> | ||
</data> | ||
<data name="Msbuild_warning_when_processing_the_file_0" xml:space="preserve"> | ||
<value>MSBuild warning when processing the file '{0}'</value> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we should change this string to MSBuild warned ...
to keep it in line with the MSBuild failed ...
string.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done.
Will this change fix #75170? |
@tmat I'm not sure, but probably not. If the issues are originally reported as warnings, then this PR will make sure they will end up as warnings. Otherwise, it won't change anything. |
Fixes #75182