Remove assumption that MSBuild controls AssemblyLoadContext.Default
rainersigwald opened this issue · 0 comments
rainersigwald commented
MSBuild has several explicit references to AssemblyLoadContext.Default
. That prevents an application from using the MSBuild API in a disposable (or otherwise managed) context.
msbuild/src/Shared/MSBuildLoadContext.cs
Lines 82 to 85 in 414393f
This one is potentially OK since it's only to support an escape-hatch feature, but we can also consider removing it:
msbuild/src/Shared/CoreCLRAssemblyLoader.cs
Lines 65 to 83 in 414393f