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.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Allow using VisualStudioLocationHelper on .NET Core

twsouthwick opened this issue · comments

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.