"ToolLocationHelper.GetPathToBuildToolsFile" returns null if running under net core 2.1
- Dominant language
- C#
- Stars
- 5.5k
- Forks
- 1.5k
- Avg merge
- 1d 6h
- Merged PRs (30d)
- 139
Description
### Steps to reproduce
1) Create a new dotnet console app in Visual Studio
2) Add nuget package Microsoft.Build.Utilities.Core
3) Try to find where msbuild 15.x is located:
`var path=ToolLocationHelper.GetPathToBuildToolsFile("msbuild.exe", buildversion);`
**Result is NULL under NetCore**
3) Create a new .NET 4.7.1 console app in Visual Studio
4) Add nuget package Microsoft.Build.Utilities.Core
5) Repeat under .net frameword 4.7.1 the search again:
`var path=ToolLocationHelper.GetPathToBuildToolsFile("msbuild.exe", buildversion);`
Result is MSBUILD PATH under Visual Studio 2017 as expected.
----
Since ToolLocationHelper can be used via Nuget in both circunstances... I think there is a problem with dotnet, not been able to obtain msbuild location.
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.