Skip to content
Open
Changes from 1 commit
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
Diff view
5 changes: 4 additions & 1 deletion scripts/vs-shell.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,10 @@ if($env:VSINSTALLDIR -eq $null) {
throw "Command not found: vswhere (did you install Visual Studio?)"
}

$vsDir = (& $vswhere -prerelease -latest -property installationPath)
# -products * is required to also match Build Tools installs, which vswhere
# skips by default (a machine with only Build Tools would fall through to the
# hardcoded 2022 paths and miss newer toolsets entirely).
$vsDir = (& $vswhere -products * -prerelease -latest -property installationPath)
Comment thread
coderabbitai[bot] marked this conversation as resolved.
Outdated
if ($vsDir -eq $null) {
# Check common VS installation paths
$searchPaths = @(
Expand Down