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

DOTNET_HOST_PATH should be set by MSBuildLocator #229

Closed JanKrivanek closed 10 months ago

JanKrivanek commented 10 months ago

Idea by @baronfel

Context

SDK sets DOTNET_HOST_PATH before launching app - incl MSBuild.exe When using custom apphost - this won't be set. So MSBuildLocator should set this to have that variable available in MSBuild

JanKrivanek commented 10 months ago

related: https://github.com/dotnet/msbuild/issues/9052 (DOTNET_HOST_PATH would be a solution for that issue)