Therefore we need this line specifying Tls12

(cherry picked from commit c91281c4b8)
This commit is contained in:
Sebastiaan Janssen
2020-09-22 14:37:54 +02:00
parent b12fad75da
commit c00017220a

View File

@@ -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." }
}