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

On BuildCheck exception MSBuild logs build failure but return true on buildResult #10610

Open
maridematte opened this issue Sep 3, 2024 · 0 comments

Comments

@maridematte
Copy link
Contributor

When there is an exception or error logged by BuildCheck, MSBuild shows on the command line and logs it as Build Failed. But at the end, the bool for build success returns true, so build successful.

This seems to be caused by the logging override here:

if (exceptionsThrownInEndBuild ||
(_overallBuildSuccess && loggingService.HasBuildSubmissionLoggedErrors(BuildEventContext.InvalidSubmissionId)))
not being synchronized with the final build result:
buildManager.EndBuild();

@maridematte maridematte self-assigned this Sep 3, 2024
@dotnet dotnet deleted a comment Sep 3, 2024
@AR-May AR-May added the triaged label Sep 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants