Adapt bootstrap to VS 2019 Preview (#4922)

This commit is contained in:
Berrysoft 2018-12-11 16:31:44 +08:00 committed by Robert Schumacher
parent 3fb47a376f
commit 13d1231ad4

View File

@ -160,6 +160,16 @@ function findAnyMSBuildWithCppPlatformToolset([string]$withVSPath)
}
$majorVersion = $version.Substring(0,2);
if ($majorVersion -eq "16")
{
$VCFolder= "$path\VC\Tools\MSVC\"
if (Test-Path $VCFolder)
{
Write-Verbose "Picking: $instanceCandidate"
return "$path\MSBuild\Current\Bin\MSBuild.exe", "v141"
}
}
if ($majorVersion -eq "15")
{
$VCFolder= "$path\VC\Tools\MSVC\"