Add Visual Studio Build Tools support (#4339)

Co-authored-by: Michael Stoll <michael.stoll@stolltec.com>
This commit is contained in:
mistoll
2022-12-19 03:33:35 +01:00
committed by GitHub
parent 233586b50d
commit a69e6ee2a4
+7 -1
View File
@@ -189,7 +189,13 @@ function VSX
if( -not $VSInstallPath -or -not (Test-Path $VSInstallPath))
{
Die "Visual Studio $VS_OFFICIAL_VER is not installed on your development machine, unable to continue, ran command: $VSWherePath -version $versionSearchStr -property installationPath"
$VSInstallPath = & $VSwherePath -version $versionSearchStr -property installationPath $VS_PRE -products 'Microsoft.VisualStudio.Product.BuildTools'
Write-Diagnostic "BuildTools $($VS_OFFICIAL_VER)InstallPath: $VSInstallPath"
if( -not $VSInstallPath -or -not (Test-Path $VSInstallPath))
{
Die "Visual Studio $VS_OFFICIAL_VER is not installed on your development machine, unable to continue, ran command: $VSWherePath -version $versionSearchStr -property installationPath"
}
}
$VisualStudioVersion = "$VS_VER.0"