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

Allow using VisualStudioLocationHelper on .NET Core #131

Closed twsouthwick closed 2 years ago

twsouthwick commented 3 years ago

I'm working on https://github.com/dotnet/upgrade-assistant that runs as a .NET 5 app, but we need to be able to get msbuild location from VS to find some targets such as WebApplications.targets. However, we end up having to duplicate the VisualStudioLocationHelper so that we can use it. Can this be exposed as an option for query? I totally understand not having it be included by default, but would love to be able to opt into it.