Ensure we have 2.1 available for running tests

上级 6abe5607
......@@ -213,7 +213,16 @@ function BuildSolution() {
# an arcade bug
# https://github.com/dotnet/arcade/issues/2220
$quietRestore = !($ci -or ($bootstrapDir -ne ""))
$testTargetFrameworks = if ($testCoreClr) { "netcoreapp2.1" } else { "" }
$testTargetFrameworks = ""
if ($testCoreClr) {
$testTargetFrameworks = "netcoreapp2.1"
# Make sure a 2.1 runtime is installed so we can run our tests. Most of them still
# target netcoreapp2.1.
InstallDotNetSdk ${env:DOTNET_INSTALL_DIR} "2.1.401"
}
$ibcSourceBranchName = GetIbcSourceBranchName
$ibcDropId = if ($officialIbcDropId -ne "default") { $officialIbcDropId } else { "" }
......
......@@ -248,6 +248,9 @@ function BuildSolution {
test_runtime="/p:TestRuntime=Mono"
mono_tool="/p:MonoTool=\"$mono_path\""
elif [[ "$test_core_clr" == true ]]; then
# Make sure we have a 2.1 runtime available for running our tests
InstallDotNetSdk $DOTNET_INSTALL_DIR 2.1.401
test=true
test_runtime="/p:TestRuntime=Core"
mono_tool=""
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册