Skip to content

Commit

Permalink
exit batch file if build is unsuccessful
Browse files Browse the repository at this point in the history
  • Loading branch information
pleasenoban committed Aug 23, 2023
1 parent 723f36b commit d00f3a9
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions install-VS2022.bat
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,10 @@ if not exist "%MSBuild%" (

echo Building Builder.sln
"%MSBuild%" Builder.sln /nologo /maxcpucount /nodeReuse:false /verbosity:minimal /t:Restore;Build
if %ERRORLEVEL% neq 0 (
echo Failed to build Cosmos Builder. Exiting...
exit /b %ERRORLEVEL%
)

start "Cosmos Builder" "source\Cosmos.Build.Builder\bin\Debug\Cosmos.Build.Builder.exe" "-VSPATH=%InstallDir%" %*
exit
Expand Down

0 comments on commit d00f3a9

Please sign in to comment.