From 82699ff7473434c6dcba8163fb50f6cada99de1c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Johannes=20Sch=C3=B6nberger?= Date: Sat, 17 Jun 2023 10:43:20 -0700 Subject: [PATCH] Cosmetics for VS dev shell script --- scripts/shell/enter_vs_dev_shell.ps1 | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/scripts/shell/enter_vs_dev_shell.ps1 b/scripts/shell/enter_vs_dev_shell.ps1 index 98a7511280..9396c5c6ba 100644 --- a/scripts/shell/enter_vs_dev_shell.ps1 +++ b/scripts/shell/enter_vs_dev_shell.ps1 @@ -1,7 +1,7 @@ if (!$env:VisualStudioDevShell) { $vswhere = "${Env:ProgramFiles(x86)}/Microsoft Visual Studio/Installer/vswhere.exe" if (!(Test-Path $vswhere)) { - throw "Could not find vswhere.exe" + throw "Failed to find vswhere.exe" } & $vswhere -latest -format json @@ -13,10 +13,10 @@ if (!$env:VisualStudioDevShell) { Import-Module "$($vsInstance.installationPath)/Common7/Tools/Microsoft.VisualStudio.DevShell.dll" $prevCwd = Get-Location try { - Enter-VsDevShell $vsInstance.instanceId -DevCmdArguments "-no_logo -host_arch=amd64 -arch=amd64 -vcvars_ver=$MsvcToolsetVersion" + Enter-VsDevShell $vsInstance.instanceId -DevCmdArguments "-no_logo -host_arch=amd64 -arch=amd64" } catch { Write-Host $_ - Write-Error "Failed to enter Visual Studio Dev Shell. Make sure to install Visual Studio component '$MsvcToolsetComponent'" + Write-Error "Failed to enter Visual Studio Dev Shell" exit 1 } Set-Location $prevCwd