diff options
author | davidmatson <dmatson@microsoft.com> | 2012-10-12 01:59:26 +0400 |
---|---|---|
committer | davidmatson <dmatson@microsoft.com> | 2012-10-12 01:59:26 +0400 |
commit | 45c1223c1d410755b6948407ec70bb6818f15bf9 (patch) | |
tree | 88d671c76777eb8bf59ee76fa338c27653c8ce45 /build.cmd | |
parent | 88d18486a47b4044e84fc1683713d7cdfc965ae0 (diff) |
Report build failure, not success, when MSBuild returns a negative exit code.
Diffstat (limited to 'build.cmd')
-rw-r--r-- | build.cmd | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -8,12 +8,12 @@ mkdir bin if "%1" == "" goto BuildDefaults %SystemRoot%\Microsoft.NET\Framework\v4.0.30319\msbuild Runtime.msbuild /m /nr:false /t:%* /p:Platform="Any CPU" /v:M /fl /flp:LogFile=bin\msbuild.log;Verbosity=Normal -if errorlevel 1 goto BuildFail +if %ERRORLEVEL% neq 0 goto BuildFail goto BuildSuccess :BuildDefaults %SystemRoot%\Microsoft.NET\Framework\v4.0.30319\msbuild Runtime.msbuild /m /nr:false /p:Platform="Any CPU" /v:M /fl /flp:LogFile=bin\msbuild.log;Verbosity=Normal -if errorlevel 1 goto BuildFail +if %ERRORLEVEL% neq 0 goto BuildFail goto BuildSuccess :BuildFail |