Skip to content
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

[XC] Fix LogWarningOrError #22454

Merged
merged 5 commits into from
May 20, 2024

Conversation

simonrozsival
Copy link
Member

@simonrozsival simonrozsival commented May 16, 2024

Description of Change

This will make sure we adhere to the correct format of warnings and errors in the MSBuild output (https://learn.microsoft.com/en-us/visualstudio/msbuild/msbuild-diagnostic-format-for-tasks?view=vs-2022)

There was also a problem with errors: when we logged error through LogWarningOrError, the MSBuild task would still succeed, because the error wasn't added to the list of throw exceptions. This PR fixes this problem as well.

/cc @StephaneDelcroix

@StephaneDelcroix
Copy link
Contributor

this hopefully will report errors correctly in VSCode

@simonrozsival
Copy link
Member Author

@StephaneDelcroix I noticed we're also not passing the HelpLink to MSBuild so I updated the PR.

@simonrozsival simonrozsival changed the title [XC] Split MSBuild log subcategory and code [XC] Fix LogWarningOrError May 16, 2024
@rmarinho rmarinho merged commit cc51e31 into dotnet:net9.0 May 20, 2024
48 checks passed
@simonrozsival simonrozsival deleted the fix-msbuild-logging-format branch May 20, 2024 13:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants