diff options
author | Ignacio Etcheverry <neikeq@users.noreply.github.com> | 2017-10-05 19:42:22 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-10-05 19:42:22 +0200 |
commit | 928efe06d672d8afeb595f75878746a51e4dc2ce (patch) | |
tree | 552e08e25c57ba021a273780ac6fca4aed5f5c1c /modules/mono/editor/GodotSharpTools/Build/BuildSystem.cs | |
parent | b9b9a9f86ee4f0905629259d3e63e6d97e7b3e3b (diff) | |
parent | 1d309439cbdaa21a75731bd8db28217690e829a2 (diff) |
Merge pull request #11845 from neikeq/music-is-overrated
- Fixed uninitialized local
- Improved msbuild search on Unix platforms
- Add C# script to csproj when attaching it to an object
Diffstat (limited to 'modules/mono/editor/GodotSharpTools/Build/BuildSystem.cs')
-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; |