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

github.com/mono/corefx.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWes Haggard <Wes.Haggard@microsoft.com>2015-01-20 03:43:14 +0300
committerWes Haggard <Wes.Haggard@microsoft.com>2015-01-20 03:43:14 +0300
commit745a6576210b18c91e37aa4d30fc01848ef5502b (patch)
treee61d0a7c738bd07f5c015a2bb26cc6db196864ac /build.cmd
parentbb32cd32b2b7c9fbbe842730775d4f239370b63e (diff)
Make sure the msbuild exit code is the exit code for build.cmd
Diffstat (limited to 'build.cmd')
-rw-r--r--build.cmd4
1 files changed, 3 insertions, 1 deletions
diff --git a/build.cmd b/build.cmd
index bd928c2479..9b3a810b7b 100644
--- a/build.cmd
+++ b/build.cmd
@@ -29,6 +29,7 @@ goto :AfterBuild
:build
%_buildprefix% %_msbuildexe% "%~dp0build.proj" /nologo /maxcpucount /verbosity:minimal /nodeReuse:false /fileloggerparameters:Verbosity=diag;LogFile="%~dp0msbuild.log";Append %* %_buildpostfix%
+set BUILDERRORLEVEL=%ERRORLEVEL%
goto :eof
:AfterBuild
@@ -36,5 +37,6 @@ goto :eof
echo.
:: Pull the build summary from the log file
findstr /ir /c:".*Warning(s)" /c:".*Error(s)" /c:"Time Elapsed.*" "%~dp0msbuild.log"
+echo Build Exit Code = %BUILDERRORLEVEL%
-endlocal \ No newline at end of file
+exit /b %BUILDERRORLEVEL% \ No newline at end of file