Update the path to built runtime for `build -vs` (#1295)
authorGanbarukamo41 <ganbarukamo@gmail.com>
Sat, 4 Jan 2020 23:14:01 +0000 (08:14 +0900)
committerAnirudh Agnihotry <anirudhagnihotry098@gmail.com>
Sat, 4 Jan 2020 23:14:01 +0000 (15:14 -0800)
* After 3b9abae, the script was not updated to reflect the changes and was still setting the old path. This resulted in VSTest failing with `It was not possible to find any compatible framework version...`. This commit updates the path (albeit hard-coded; though, this is done in a few other scripts as well) to fix this for now.

eng/build.ps1

index 173826b..55edfb1 100644 (file)
@@ -76,7 +76,7 @@ if ($vs) {
   $archTestHost = if ($arch) { $arch } else { "x64" }
 
   # This tells .NET Core to use the same dotnet.exe that build scripts use
-  $env:DOTNET_ROOT="$PSScriptRoot\..\artifacts\bin\testhost\netcoreapp-Windows_NT-$configuration-$archTestHost";
+  $env:DOTNET_ROOT="$PSScriptRoot\..\artifacts\bin\testhost\netcoreapp5.0-Windows_NT-$configuration-$archTestHost";
 
   # This tells MSBuild to load the SDK from the directory of the bootstrapped SDK
   $env:DOTNET_MSBUILD_SDK_RESOLVER_CLI_DIR=InitializeDotNetCli -install:$false