Skip to content

Commit

Permalink
Try using MSBuildExtensionsPath
Browse files Browse the repository at this point in the history
  • Loading branch information
dellis1972 committed Feb 28, 2024
1 parent 5e0d4b6 commit 65b0f97
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions MSBuildSandbox.Tests/Tests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,9 @@ public string GetMSbuildLocation ()
if (Environment.OSVersion.Platform == PlatformID.Win32NT) {
return ToolLocationHelper.GetPathToBuildToolsFile("msbuild.exe", ToolLocationHelper.CurrentToolsVersion);
}
var path = Environment.GetEnvironmentVariable ("MSBuildExtensionsPath");
if (!string.IsNullOrEmpty (path))
return path;
return @"/usr/local/share/dotnet/sdk/8.0.100/";
}

Expand Down

0 comments on commit 65b0f97

Please sign in to comment.