From c91281c4b80bea1bba6c23b8e697835691d109f3 Mon Sep 17 00:00:00 2001 From: Elitsa Marinovska Date: Tue, 30 Jun 2020 23:02:36 +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 --- build/build-bootstrap.ps1 | 1 + 1 file changed, 1 insertion(+) diff --git a/build/build-bootstrap.ps1 b/build/build-bootstrap.ps1 index 82c789ff22..645f6c7d41 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." } }