Skip to content

Harden the ID-to-project file map misses #11289

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

Merged
merged 1 commit into from
Jan 22, 2025
Merged

Conversation

JanKrivanek
Copy link
Member

Fixes #11095

Context

AssemblyLoadBuildEventArgs are logged asynchronously, and build doesn't wait for those, so it can happen that ProjectFinishedEventArgs occurred first - removing the id->file mapping from the map, but AssemblyLoadsTracker still uses the BuildEventContext for that project.

This would previously lead to a build crash. Since this is very benign scenario - let's add a grace handle for it.

@JanKrivanek JanKrivanek merged commit 1544571 into main Jan 22, 2025
10 checks passed
@JanKrivanek JanKrivanek deleted the proto/file-map-miss branch January 22, 2025 11:18
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.

Internal MSBuild Error during logging by AssemblyLoadsTracker
3 participants