microsoft / MSBuildLocator

An API to locate MSBuild assemblies from an installed Visual Studio location. Use this to ensure that calling the MSBuild API will use the same toolset that a build from Visual Studio or msbuild.exe would.
Other
216 stars 83 forks source link

Identify architecture of found MSBuild #130

Open twsouthwick opened 3 years ago

twsouthwick commented 3 years ago

Can the VisualStudioInstance include information about what the architecture is? This is especially problematic as dotnet --list-sdks will list sdks for both x86 and x64 and will then fail to load some of the assemblies.

I'm not sure if we should use an existing type (ie System.Runtime.InteropServices.Architecture) or create something here, but it would be nice to just check there instead of my current check of if it contains 'x86' that can be problematic. The .version file contains the os-arch pair that can probably be used for this.