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

github.com/mono/monodevelop.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCody Russell <cody@jhu.edu>2017-02-01 21:01:36 +0300
committerMarius Ungureanu <teromario@yahoo.com>2017-02-01 21:01:36 +0300
commit2ae54ce9a373a83202f903d558ccdeaed201322a (patch)
treef38b11870f0beaf0c50086d12b16463bcd5cbbe6 /main/winbuild-release.bat
parent2485f883599bc6a7c5afdc9161f6c6b9613ff323 (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.bat5
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%
+)