diff options
author | Cody Russell <cody@jhu.edu> | 2017-02-01 21:01:36 +0300 |
---|---|---|
committer | Marius Ungureanu <teromario@yahoo.com> | 2017-02-01 21:01:36 +0300 |
commit | 2ae54ce9a373a83202f903d558ccdeaed201322a (patch) | |
tree | f38b11870f0beaf0c50086d12b16463bcd5cbbe6 /main/winbuild-release.bat | |
parent | 2485f883599bc6a7c5afdc9161f6c6b9613ff323 (diff) |
[Windows] Pause if launched from explorer.exe and if there is an error. (#1830)
Diffstat (limited to 'main/winbuild-release.bat')
-rw-r--r-- | main/winbuild-release.bat | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/main/winbuild-release.bat b/main/winbuild-release.bat index 6c5bf6565f..638dd97e41 100644 --- a/main/winbuild-release.bat +++ b/main/winbuild-release.bat @@ -2,3 +2,8 @@ git submodule update --init --recursive "external\nuget-binary\NuGet.exe" restore Main.sln
"external\nuget-binary\NuGet.exe" restore external\RefactoringEssentials\RefactoringEssentials.sln
"C:\Program Files (x86)\MSBuild\14.0\Bin\MSBuild.exe" Main.sln /m /p:Configuration=ReleaseWin32 /p:Platform="Any CPU" %*
+
+if NOT [%ERRORLEVEL%] == ["0"] (
+ for %%x in (%CMDCMDLINE%) do if /i "%%~x" == "/c" pause
+ exit /b %ERRORLEVEL%
+)
|