Support command line build in VS2019 (#2048)

This commit is contained in:
James Newton-King
2019-04-20 16:24:09 +12:00
committed by GitHub
parent f80a8184c8
commit a088299eee
+16 -2
View File
@@ -195,10 +195,24 @@ function EnsureNuGetPackage($packageName, $packagePath, $packageVersion)
function GetMsBuildPath()
{
$path = & $vswherePath\tools\vswhere.exe -latest -products * -requires Microsoft.Component.MSBuild -property installationPath
if (!($path)) {
if (!($path))
{
throw "Could not find Visual Studio install path"
}
return join-path $path 'MSBuild\15.0\Bin\MSBuild.exe'
$msBuildPath = join-path $path 'MSBuild\15.0\Bin\MSBuild.exe'
if (Test-Path $msBuildPath)
{
return $msBuildPath
}
$msBuildPath = join-path $path 'MSBuild\Current\Bin\MSBuild.exe'
if (Test-Path $msBuildPath)
{
return $msBuildPath
}
throw "Could not find MSBuild path"
}
function NetCliTests($build)