Skip to content

Commit a5c6a54

Browse files
authored
Merge pull request #105 from mistoll/support_buildtools
Add support for Visual Studio Build Tools
2 parents 448e765 + db981d6 commit a5c6a54

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

build.ps1

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -251,7 +251,13 @@ function Msvs
251251

252252
if($null -eq $VSInstallPath -or !(Test-Path $VSInstallPath))
253253
{
254-
Die "Visual Studio $VS_OFFICIAL_VER was not found"
254+
$VSInstallPath = & $global:VSwherePath -version $versionSearchStr -property installationPath -products 'Microsoft.VisualStudio.Product.BuildTools'
255+
Write-Diagnostic "BuildTools $($VS_OFFICIAL_VER)InstallPath: $VSInstallPath"
256+
257+
if($null -eq $VSInstallPath -or !(Test-Path $VSInstallPath))
258+
{
259+
Die "Visual Studio $VS_OFFICIAL_VER was not found"
260+
}
255261
}
256262

257263
$VisualStudioVersion = "$VS_VER.0"

0 commit comments

Comments
 (0)