From 814bfb1923f68e844d41906ea8d24ce24f1ca15d Mon Sep 17 00:00:00 2001 From: Pavel Dubsky Date: Tue, 22 Jul 2025 20:37:21 +0200 Subject: [PATCH] Prevent Enter-VsDevShell from changing current working directory Pick-to: 6.10 6.9 6.8 6.5 Change-Id: I6de981c06326a6d70bc200af74164a1021f8c138 Reviewed-by: Artem Dyomin --- coin/provisioning/common/windows/helpers.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/coin/provisioning/common/windows/helpers.ps1 b/coin/provisioning/common/windows/helpers.ps1 index 9e4122ea..982c5ee9 100644 --- a/coin/provisioning/common/windows/helpers.ps1 +++ b/coin/provisioning/common/windows/helpers.ps1 @@ -360,7 +360,7 @@ function EnterVSDevShell { Write-Host "Enter VisualStudio developer shell (-host_arch=$HostArch -arch=$Arch -VsInstallPath='$VSPath')" try { Import-Module "$VSPath\Common7\Tools\Microsoft.VisualStudio.DevShell.dll" - Enter-VsDevShell -VsInstallPath $VSPath -DevCmdArguments "-host_arch=$HostArch -arch=$Arch -no_logo" + Enter-VsDevShell -SkipAutomaticLocation -VsInstallPath $VSPath -DevCmdArguments "-host_arch=$HostArch -arch=$Arch -no_logo" } catch { Write-Host "Failed to enter VisualStudio DevShell" return $false