aboutsummaryrefslogtreecommitdiff
path: root/modules/mono/editor/GodotSharpTools/Build/BuildSystem.cs
diff options
context:
space:
mode:
authorIgnacio Etcheverry2017-10-05 00:08:38 +0200
committerIgnacio Etcheverry2017-10-05 00:08:38 +0200
commitb4d758e067f65de2f10d116efe0dbf682671317d (patch)
treee491b6129d093846582b276c5941b225ce22bee4 /modules/mono/editor/GodotSharpTools/Build/BuildSystem.cs
parentd5caf71c3fcdeb422d1b0ea97a836fcdb57a8713 (diff)
downloadgodot-b4d758e067f65de2f10d116efe0dbf682671317d.tar.gz
godot-b4d758e067f65de2f10d116efe0dbf682671317d.tar.zst
godot-b4d758e067f65de2f10d116efe0dbf682671317d.zip
Add alternative search locations for msbuild
Diffstat (limited to 'modules/mono/editor/GodotSharpTools/Build/BuildSystem.cs')
-rw-r--r--modules/mono/editor/GodotSharpTools/Build/BuildSystem.cs10
1 files changed, 9 insertions, 1 deletions
diff --git a/modules/mono/editor/GodotSharpTools/Build/BuildSystem.cs b/modules/mono/editor/GodotSharpTools/Build/BuildSystem.cs
index 256e64ddd..329b6d200 100644
--- a/modules/mono/editor/GodotSharpTools/Build/BuildSystem.cs
+++ b/modules/mono/editor/GodotSharpTools/Build/BuildSystem.cs
@@ -19,7 +19,15 @@ namespace GodotSharpTools.Build
private static string MSBuildPath
{
- get { return godot_icall_BuildInstance_get_MSBuildPath(); }
+ get
+ {
+ string ret = godot_icall_BuildInstance_get_MSBuildPath();
+
+ if (ret == null)
+ throw new FileNotFoundException("Cannot find the MSBuild executable.");
+
+ return ret;
+ }
}
private string solution;