From e376cb4343e03803d1f0db257551e2954c93d678 Mon Sep 17 00:00:00 2001 From: Doug Bunting <6431421+dougbu@users.noreply.github.com> Date: Tue, 7 Mar 2023 12:26:06 -0800 Subject: [PATCH] Restore `pushd` and `popd` - oops, needed on TeamCity to find global.json - left this unconditional, mostly for the odd local build from another folder --- build.cmd | 3 +++ 1 file changed, 3 insertions(+) diff --git a/build.cmd b/build.cmd index 6b591d1da..5802269fe 100644 --- a/build.cmd +++ b/build.cmd @@ -75,6 +75,7 @@ set "NUGET_PACKAGES=%~dp0packages" 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) +pushd %~dp0 if "%1" == "" goto BuildDefaults MSBuild "%~dp0Runtime.msbuild" /m /nr:false /p:Platform="Any CPU" /p:Desktop=%Desktop% /v:M ^ @@ -91,11 +92,13 @@ goto BuildSuccess :BuildFail echo. echo *** BUILD FAILED *** +popd endlocal exit /B 999 :BuildSuccess echo. echo **** BUILD SUCCESSFUL *** +popd endlocal exit /B 0