From c00017220a97380b05fcdc8d65002ddefc5a44cc Mon Sep 17 00:00:00 2001 From: Sebastiaan Janssen Date: Tue, 22 Sep 2020 14:37:54 +0200 Subject: [PATCH] NuGet.org had TLS 1.0 and 1.1 disabled - https://devblogs.microsoft.com/nuget/deprecating-tls-1-0-and-1-1-on-nuget-org/. Therefore we need this line specifying Tls12 (cherry picked from commit c91281c4b80bea1bba6c23b8e697835691d109f3) --- build/build-bootstrap.ps1 | 1 + 1 file changed, 1 insertion(+) diff --git a/build/build-bootstrap.ps1 b/build/build-bootstrap.ps1 index 82c789ff22..9a31a57acf 100644 --- a/build/build-bootstrap.ps1 +++ b/build/build-bootstrap.ps1 @@ -34,6 +34,7 @@ if (-not (test-path $nuget)) { Write-Host "Download NuGet..." + [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12 Invoke-WebRequest $source -OutFile $nuget if (-not $?) { throw "Failed to download NuGet." } }