diff --git a/build/common.ps1 b/build/common.ps1 index f1aaf4e6f81..241d849f6d7 100644 --- a/build/common.ps1 +++ b/build/common.ps1 @@ -277,11 +277,11 @@ Function Install-DotnetCLI { } # Install the 2.x runtime because our tests target netcoreapp2x - Trace-Log "$DotNetInstall -Runtime dotnet -Channel 2.2 -InstallDir $CLIRoot -NoPath" + Trace-Log "$DotNetInstall -Runtime dotnet -Channel 3.1 -InstallDir $CLIRoot -NoPath" # dotnet-install might make http requests that fail, but it handles those errors internally # However, Invoke-BuildStep checks if any error happened, ever. Hence we need to run dotnet-install # in a different process, to avoid treating their handled errors as build errors. - & powershell $DotNetInstall -Runtime dotnet -Channel 2.2 -InstallDir $CLIRoot -NoPath + & powershell $DotNetInstall -Runtime dotnet -Channel 3.1 -InstallDir $CLIRoot -NoPath if ($LASTEXITCODE -ne 0) { throw "dotnet-install.ps1 exited with non-zero exit code" diff --git a/scripts/funcTests/runFuncTests.sh b/scripts/funcTests/runFuncTests.sh index 1435c93b9aa..43fdde3589e 100755 --- a/scripts/funcTests/runFuncTests.sh +++ b/scripts/funcTests/runFuncTests.sh @@ -36,7 +36,7 @@ curl -o cli/dotnet-install.sh -L https://dot.net/v1/dotnet-install.sh chmod +x cli/dotnet-install.sh # Get recommended version for bootstrapping testing version -cli/dotnet-install.sh -i cli -c 2.2 -nopath +cli/dotnet-install.sh -i cli -c 3.1 -nopath if (( $? )); then echo "The .NET CLI Install failed!!"