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
This commit is contained in:
Родитель
2da072a141
Коммит
6949d439be
|
@ -75,6 +75,7 @@ set "NUGET_PACKAGES=%~dp0packages"
|
||||||
REM Are we running in a local dev environment (not on CI)?
|
REM Are we running in a local dev environment (not on CI)?
|
||||||
if DEFINED CI (set Desktop=false) else if DEFINED TEAMCITY_VERSION (set Desktop=false) else (set Desktop=true)
|
if DEFINED CI (set Desktop=false) else if DEFINED TEAMCITY_VERSION (set Desktop=false) else (set Desktop=true)
|
||||||
|
|
||||||
|
pushd %~dp0
|
||||||
if "%1" == "" goto BuildDefaults
|
if "%1" == "" goto BuildDefaults
|
||||||
|
|
||||||
MSBuild "%~dp0Runtime.msbuild" /m /nr:false /p:Platform="Any CPU" /p:Desktop=%Desktop% /v:M ^
|
MSBuild "%~dp0Runtime.msbuild" /m /nr:false /p:Platform="Any CPU" /p:Desktop=%Desktop% /v:M ^
|
||||||
|
@ -91,11 +92,13 @@ goto BuildSuccess
|
||||||
:BuildFail
|
:BuildFail
|
||||||
echo.
|
echo.
|
||||||
echo *** BUILD FAILED ***
|
echo *** BUILD FAILED ***
|
||||||
|
popd
|
||||||
endlocal
|
endlocal
|
||||||
exit /B 999
|
exit /B 999
|
||||||
|
|
||||||
:BuildSuccess
|
:BuildSuccess
|
||||||
echo.
|
echo.
|
||||||
echo **** BUILD SUCCESSFUL ***
|
echo **** BUILD SUCCESSFUL ***
|
||||||
|
popd
|
||||||
endlocal
|
endlocal
|
||||||
exit /B 0
|
exit /B 0
|
||||||
|
|
Загрузка…
Ссылка в новой задаче