Skip to content

Commit

Permalink
Bump test runtime
Browse files Browse the repository at this point in the history
  • Loading branch information
JoeRobich committed May 31, 2020
1 parent e07b675 commit cc17cf1
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions eng/restore-toolset.ps1
Expand Up @@ -2,35 +2,35 @@ function InitializeCustomSDKToolset {
if (-not $restore) {
return
}

# Turn off MSBuild Node re-use
$env:MSBUILDDISABLENODEREUSE=1

# Workaround for the sockets issue when restoring with many nuget feeds.
$env:DOTNET_SYSTEM_NET_HTTP_USESOCKETSHTTPHANDLER=0

# Enable vs test console logging
$env:VSTEST_BUILD_TRACE=1
$env:VSTEST_TRACE_BUILD=1

$env:DOTNET_CLI_TELEMETRY_PROFILE='$env:DOTNET_CLI_TELEMETRY_PROFILE;https://github.com/dotnet/format'

$cli = InitializeDotnetCli -install:$true
InstallDotNetSharedFramework "2.1.15"
InstallDotNetSharedFramework "3.1.4"
}

function InstallDotNetSharedFramework([string]$version) {
$dotnetRoot = $env:DOTNET_INSTALL_DIR
$fxDir = Join-Path $dotnetRoot "shared\Microsoft.NETCore.App\$version"

if (!(Test-Path $fxDir)) {
$installScript = GetDotNetInstallScript $dotnetRoot
& $installScript -Version $version -InstallDir $dotnetRoot -Runtime "dotnet"

if($lastExitCode -ne 0) {
Write-Output "Failed to install Shared Framework $version. Ignoring failure as not all distros carrie all versions of the framework."
}
}
}

InitializeCustomSDKToolset

0 comments on commit cc17cf1

Please sign in to comment.