Skip to content

Commit

Permalink
Build - Fix Add-VisualStudio-Path when multiple VS are installed
Browse files Browse the repository at this point in the history
  • Loading branch information
Liryna committed Apr 30, 2022
1 parent 21f1497 commit de96b89
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/build_helper.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ function Exec-External {
}

function Add-VisualStudio-Path {
$vsPath = & "${Env:ProgramFiles(x86)}\Microsoft Visual Studio\Installer\vswhere.exe" -property installationPath
$vsPath = (& "${Env:ProgramFiles(x86)}\Microsoft Visual Studio\Installer\vswhere.exe" -property installationPath).Split([Environment]::NewLine) | Select -First 1
$msBuild_VSPath = "$vsPath\MSBuild\Current\Bin"

if (!(Test-Path -Path $msBuild_VSPath)) {
Expand Down

0 comments on commit de96b89

Please sign in to comment.