diff options
author | RĂ©mi Verschelde <remi@verschelde.fr> | 2021-02-05 09:29:16 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-02-05 09:29:16 +0100 |
commit | a7a51fb3261d4d239dcce3070cbdbdb8e3abdcdb (patch) | |
tree | fe22ac2ec76f38b0be025b10e60171b5a93131ed | |
parent | 1f7f27e86ae73ef958eb8163d5028970e8b969c2 (diff) | |
parent | e304f716c734c4d1f53808f9fdfaf84e54a954db (diff) |
Merge pull request #45715 from bruvzg/mono_dotnet_path
[Mono] Use the same search logic for both `MSBuild` and `dotnet`.
-rw-r--r-- | modules/mono/editor/GodotTools/GodotTools/Build/MsBuildFinder.cs | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/modules/mono/editor/GodotTools/GodotTools/Build/MsBuildFinder.cs b/modules/mono/editor/GodotTools/GodotTools/Build/MsBuildFinder.cs index 5ef55fea49..774c49e705 100644 --- a/modules/mono/editor/GodotTools/GodotTools/Build/MsBuildFinder.cs +++ b/modules/mono/editor/GodotTools/GodotTools/Build/MsBuildFinder.cs @@ -86,7 +86,7 @@ namespace GodotTools.Build { case BuildTool.DotnetCli: { - string dotnetCliPath = OS.PathWhich("dotnet"); + string dotnetCliPath = FindBuildEngineOnUnix("dotnet"); if (!string.IsNullOrEmpty(dotnetCliPath)) return (dotnetCliPath, BuildTool.DotnetCli); GD.PushError($"Cannot find executable for '{BuildManager.PropNameDotnetCli}'. Fallback to MSBuild from Mono."); @@ -122,7 +122,11 @@ namespace GodotTools.Build if (OS.IsMacOS) { result.Add("/Library/Frameworks/Mono.framework/Versions/Current/bin/"); + result.Add("/opt/local/bin/"); result.Add("/usr/local/var/homebrew/linked/mono/bin/"); + result.Add("/usr/local/bin/"); + result.Add("/usr/local/bin/dotnet/"); + result.Add("/usr/local/share/dotnet/"); } result.Add("/opt/novell/mono/bin/"); |