Skip to content

Commit

Permalink
Merge pull request #105 from mistoll/support_buildtools
Browse files Browse the repository at this point in the history
Add support for Visual Studio Build Tools
  • Loading branch information
amaitland authored Dec 15, 2022
2 parents 448e765 + db981d6 commit a5c6a54
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion build.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit a5c6a54

Please sign in to comment.