Browse Source

Quote MSBUILD_EXE and also use it

Matthew Vukomanovic 9 years ago
parent
commit
daf5975ae8
1 changed files with 2 additions and 2 deletions
  1. 2 2
      build/build.cmd

+ 2 - 2
build/build.cmd

@@ -6,13 +6,13 @@ set MSBUILD_HOME=%WINDIR%\Microsoft.NET\Framework\v4.0.30319
 rem MSBuild project file is located in the same directory as the current script
 rem MSBuild project file is located in the same directory as the current script
 set MSBUILD_PROJECT=%~dp0\build.proj
 set MSBUILD_PROJECT=%~dp0\build.proj
 
 
-set MSBUILD_EXE=%MSBUILD_HOME%\msbuild.exe
+set MSBUILD_EXE="%MSBUILD_HOME%\msbuild.exe"
 
 
 rem verify whether the version of MSBuild that we need is installed
 rem verify whether the version of MSBuild that we need is installed
 if not exist %MSBUILD_EXE% goto msbuild_missing
 if not exist %MSBUILD_EXE% goto msbuild_missing
 
 
 rem launch the build script
 rem launch the build script
-call %MSBUILD_HOME%\msbuild.exe %MSBUILD_PROJECT% /verbosity:minimal /nologo
+call %MSBUILD_EXE% %MSBUILD_PROJECT% /verbosity:minimal /nologo
 if errorlevel 1 goto msbuild_failure
 if errorlevel 1 goto msbuild_failure
 goto :EOF
 goto :EOF