8000 Cosmetics for VS dev shell script by ahojnnes · Pull Request #1965 · colmap/colmap · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Cosmetics for VS dev shell script #1965

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 17, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
8000
Diff view
6 changes: 3 additions & 3 deletions scripts/shell/enter_vs_dev_shell.ps1
5983
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -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
Expand Down
0