From b4d758e067f65de2f10d116efe0dbf682671317d Mon Sep 17 00:00:00 2001 From: Ignacio Etcheverry Date: Thu, 5 Oct 2017 00:08:38 +0200 Subject: Add alternative search locations for msbuild --- modules/mono/editor/GodotSharpTools/Build/BuildSystem.cs | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'modules/mono/editor/GodotSharpTools/Build/BuildSystem.cs') 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; -- cgit v1.2.3-70-g09d2