Skip to content

Commit 6949d43

Browse files
authored
Restore pushd and popd (#397)
- oops, needed on TeamCity to find global.json - left this unconditional, mostly for the odd local build from another folder
1 parent 2da072a commit 6949d43

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

build.cmd

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,7 @@ set "NUGET_PACKAGES=%~dp0packages"
7575
REM Are we running in a local dev environment (not on CI)?
7676
if DEFINED CI (set Desktop=false) else if DEFINED TEAMCITY_VERSION (set Desktop=false) else (set Desktop=true)
7777

78+
pushd %~dp0
7879
if "%1" == "" goto BuildDefaults
7980

8081
MSBuild "%~dp0Runtime.msbuild" /m /nr:false /p:Platform="Any CPU" /p:Desktop=%Desktop% /v:M ^
@@ -91,11 +92,13 @@ goto BuildSuccess
9192
:BuildFail
9293
echo.
9394
echo *** BUILD FAILED ***
95+
popd
9496
endlocal
9597
exit /B 999
9698

9799
:BuildSuccess
98100
echo.
99101
echo **** BUILD SUCCESSFUL ***
102+
popd
100103
endlocal
101104
exit /B 0

0 commit comments

Comments
 (0)