diff --git a/build.cmd b/build.cmd index c70d2b3757e..028f94fd851 100644 --- a/build.cmd +++ b/build.cmd @@ -5,5 +5,5 @@ set _args=%* if "%~1"=="-?" set _args=-help if "%~1"=="/?" set _args=-help -powershell -ExecutionPolicy ByPass -NoProfile -Command "& '%~dp0eng\build.ps1'" %_args% -exit /b %ERRORLEVEL% \ No newline at end of file +powershell -ExecutionPolicy ByPass -NoProfile -Command "& '%~dp0eng\build.ps1' %_args%; exit $LASTEXITCODE" +exit /b %ERRORLEVEL%