Force CLI local on CI

上级 b5de41df
......@@ -215,8 +215,8 @@ function BuildSolution() {
$quietRestore = !($ci -or ($bootstrapDir -ne ""))
$testTargetFrameworks = ""
$testTargetFrameworks = "netcoreapp2.1"
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.
......@@ -575,6 +575,15 @@ try {
}
}
if ($ci) {
$global:_DotNetInstallDir = Join-Path $RepoRoot ".dotnet"
InstallDotNetSdk $global:_DotNetInstallDir $GlobalJson.tools.dotnet
# Make sure a 2.1 runtime is installed so we can run our tests. Most of them still
# target netcoreapp2.1.
InstallDotNetSdk $global:_DotNetInstallDir "2.1.401"
}
if ($bootstrap) {
$bootstrapDir = Make-BootstrapBuild
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册