[bootstrap] Specify full path for dirs.proj

This commit is contained in:
Alexander Karatarakis 2018-01-25 16:48:32 -08:00
parent edcc8e2c36
commit 6e07cbeff4

View File

@ -37,9 +37,6 @@ if (!(Test-Path $vcpkgSourcesPath))
return
}
try
{
Push-Location $vcpkgSourcesPath
$msbuildExeWithPlatformToolset = & $scriptsDir\findAnyMSBuildWithCppPlatformToolset.ps1 $withVSPath
$msbuildExe = $msbuildExeWithPlatformToolset[0]
$platformToolset = $msbuildExeWithPlatformToolset[1]
@ -53,7 +50,7 @@ try
"/p:PlatformToolset=$platformToolset",
"/p:TargetPlatformVersion=$windowsSDK",
"/m",
"dirs.proj") -join " "
"$vcpkgSourcesPath\dirs.proj") -join " "
# vcpkgInvokeCommandClean cmd "/c echo %PATH%"
$ec = vcpkgInvokeCommandClean $msbuildExe $arguments
@ -68,8 +65,3 @@ try
Copy-Item $vcpkgSourcesPath\Release\vcpkg.exe $vcpkgRootDir\vcpkg.exe | Out-Null
Copy-Item $vcpkgSourcesPath\Release\vcpkgmetricsuploader.exe $vcpkgRootDir\scripts\vcpkgmetricsuploader.exe | Out-Null
}
finally
{
Pop-Location
}