From db981d616e3a3d009f45ed9af91c0f8d4897c0ef Mon Sep 17 00:00:00 2001 From: Michael Stoll Date: Wed, 14 Dec 2022 19:56:54 +0100 Subject: [PATCH] Add support for Visual Studio Build Tools --- build.ps1 | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/build.ps1 b/build.ps1 index 368a47c..0793f9d 100644 --- a/build.ps1 +++ b/build.ps1 @@ -251,7 +251,13 @@ function Msvs if($null -eq $VSInstallPath -or !(Test-Path $VSInstallPath)) { - Die "Visual Studio $VS_OFFICIAL_VER was not found" + $VSInstallPath = & $global:VSwherePath -version $versionSearchStr -property installationPath -products 'Microsoft.VisualStudio.Product.BuildTools' + Write-Diagnostic "BuildTools $($VS_OFFICIAL_VER)InstallPath: $VSInstallPath" + + if($null -eq $VSInstallPath -or !(Test-Path $VSInstallPath)) + { + Die "Visual Studio $VS_OFFICIAL_VER was not found" + } } $VisualStudioVersion = "$VS_VER.0"