From 7f6bd169814cb751502ce34bca560ac614fc7fd9 Mon Sep 17 00:00:00 2001 From: Joey Robichaud Date: Sun, 31 May 2020 14:23:30 -0700 Subject: [PATCH] Remove toolset restore --- eng/restore-toolset.ps1 | 36 ------------------------------------ 1 file changed, 36 deletions(-) delete mode 100644 eng/restore-toolset.ps1 diff --git a/eng/restore-toolset.ps1 b/eng/restore-toolset.ps1 deleted file mode 100644 index f393522714..0000000000 --- a/eng/restore-toolset.ps1 +++ /dev/null @@ -1,36 +0,0 @@ -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" - } - - 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 \ No newline at end of file