From a69e6ee2a48bfbbe6804608bbab86d2cb3fddd85 Mon Sep 17 00:00:00 2001 From: mistoll Date: Mon, 19 Dec 2022 03:33:35 +0100 Subject: [PATCH] Add Visual Studio Build Tools support (#4339) Co-authored-by: Michael Stoll --- build.ps1 | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/build.ps1 b/build.ps1 index afe941d22..04a5ca24f 100644 --- a/build.ps1 +++ b/build.ps1 @@ -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"