Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/aspnetwebstack.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordavidmatson <dmatson@microsoft.com>2012-10-12 01:59:26 +0400
committerdavidmatson <dmatson@microsoft.com>2012-10-12 01:59:26 +0400
commit45c1223c1d410755b6948407ec70bb6818f15bf9 (patch)
tree88d671c76777eb8bf59ee76fa338c27653c8ce45 /build.cmd
parent88d18486a47b4044e84fc1683713d7cdfc965ae0 (diff)
Report build failure, not success, when MSBuild returns a negative exit code.
Diffstat (limited to 'build.cmd')
-rw-r--r--build.cmd4
1 files changed, 2 insertions, 2 deletions
diff --git a/build.cmd b/build.cmd
index 6cf45a31..c7bc2eef 100644
--- a/build.cmd
+++ b/build.cmd
@@ -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