diff options
author | Ignacio Etcheverry <ignalfonsore@gmail.com> | 2017-10-05 00:08:38 +0200 |
---|---|---|
committer | Ignacio Etcheverry <ignalfonsore@gmail.com> | 2017-10-05 00:08:38 +0200 |
commit | b4d758e067f65de2f10d116efe0dbf682671317d (patch) | |
tree | e491b6129d093846582b276c5941b225ce22bee4 /modules/mono/editor/GodotSharpTools | |
parent | d5caf71c3fcdeb422d1b0ea97a836fcdb57a8713 (diff) |
Add alternative search locations for msbuild
Diffstat (limited to 'modules/mono/editor/GodotSharpTools')
-rw-r--r-- | modules/mono/editor/GodotSharpTools/Build/BuildSystem.cs | 10 |
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 256e64ddde..329b6d2008 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; |