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
220 stars 83 forks source link

Fix potential null-reference if "VSCMD_VER" is not set #34

Closed DustinCampbell closed 6 years ago

DustinCampbell commented 6 years ago

In cases where "VSINSTALLDIR" is set but "VSCMD_VER" is not, getting the dev console instance could null-ref.

DustinCampbell commented 6 years ago

FYI that I don't have access to merge this if you guys want to take it.