From 744880de5cdaf4d19250d0bfc4d8f6f969422c39 Mon Sep 17 00:00:00 2001 From: jnm2 Date: Sun, 10 Jan 2021 21:03:06 -0500 Subject: [PATCH] NuGet.org now requires TLS 1.2 --- build.ps1 | 2 ++ 1 file changed, 2 insertions(+) diff --git a/build.ps1 b/build.ps1 index b03a21c..c139c4b 100644 --- a/build.ps1 +++ b/build.ps1 @@ -52,6 +52,8 @@ if ($SigningCertThumbprint) { $nuget = 'tools\nuget.exe' if (-not (Test-Path $nuget)) { New-Item -ItemType Directory -Force -Path tools + + [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12 Invoke-WebRequest -Uri https://dist.nuget.org/win-x86-commandline/latest/nuget.exe -OutFile $nuget }