Therefore we need this line specifying Tls12
This commit is contained in:
Elitsa Marinovska
2020-06-30 23:02:36 +02:00
parent 9d639a64b3
commit c91281c4b8

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