Skip to content

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

Merged
JanKrivanek merged 1 commit intomainfrom
proto/file-map-miss
Jan 22, 2025
Merged

Harden the ID-to-project file map misses#11289
JanKrivanek merged 1 commit intomainfrom
proto/file-map-miss

Conversation

@JanKrivanek
Copy link
Copy Markdown
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.

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