Skip to content

Consider logging assembly loads into the binlog #6303

@KirillOsenkov

Description

@KirillOsenkov

We often have issues when MSBuild binaries are loaded from the GAC etc. Or NuGet/SDK binaries loaded from the wrong location. I think it would be beneficial to subscribe to AppDomain.CurrentDomain.AssemblyLoad and log all assembly loads, including full path to the .dll, assembly name, MVID, and maybe some attributes such as AssemblyFileVersion (which often contains the Git SHA).

Metadata

Metadata

Assignees

Labels

Area: DebuggabilityIssues impacting the diagnosability of builds, including logging and clearer error messages.Area: LoggingGood First IssueSelf-contained issues good for first-time contributors.needs-designRequires discussion with the dev team before attempting a fix.triaged

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions