Closed powercode closed 3 years ago
It must be OK to call Microsoft.Build.Locator.MSBuildLocator.RegisterInstance
with System.Runtime.CompilerServices.Unsafe
already loaded, which that change disallowed.
@EWSoftware
On Visual Studio v16.8.2 now it crashes failing to load System.Collections.Immutable v5.0.0.0.
An alternative fix to #94 needs to take into account that the assemblies we need to load changes dynamically with different releases of VS.
When using a XUnit test project,
System.Numerics.Vectors
andSystem.Runtime.CompilerServices.Unsafe
are already loaded in the process when the a module initializer is run. That is as early as can be.So having these assemblies in the vector
seems like a bad idea.
If they are needed as a dependency, that should be separated from if there are msbuild assemblies loaded in the process.