mirror of
git://code.qt.io/qt/qt5.git
synced 2026-04-21 04:16:39 +08:00
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 <artem.dyomin@qt.io>
This commit is contained in:
@@ -360,7 +360,7 @@ function EnterVSDevShell {
|
|||||||
Write-Host "Enter VisualStudio developer shell (-host_arch=$HostArch -arch=$Arch -VsInstallPath='$VSPath')"
|
Write-Host "Enter VisualStudio developer shell (-host_arch=$HostArch -arch=$Arch -VsInstallPath='$VSPath')"
|
||||||
try {
|
try {
|
||||||
Import-Module "$VSPath\Common7\Tools\Microsoft.VisualStudio.DevShell.dll"
|
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 {
|
} catch {
|
||||||
Write-Host "Failed to enter VisualStudio DevShell"
|
Write-Host "Failed to enter VisualStudio DevShell"
|
||||||
return $false
|
return $false
|
||||||
|
|||||||
Reference in New Issue
Block a user