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

Filter VS instances to those containing MSBuild #76

Closed rainersigwald closed 4 years ago

rainersigwald commented 5 years ago

Avoid returning Visual Studio instances that don't have MSBuild installed, for instance SSDT or Test Agent.

I'm basing the check on the internal component that pulls in the GitHub MSBuild package because it also ensures the presence of Roslyn.

This should fix #73, but I haven't tested in that scenario (Test Agent installed) yet.

I don't think this is a breaking change warranting a semver major version bump. I think "the thing called MSBuildLocator returned instances of VS that didn't include MSBuild" is just a bug.