Skip to content

Commit 744880d

Browse files
committed
NuGet.org now requires TLS 1.2
1 parent 4d4640c commit 744880d

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

build.ps1

+2
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,8 @@ if ($SigningCertThumbprint) {
5252
$nuget = 'tools\nuget.exe'
5353
if (-not (Test-Path $nuget)) {
5454
New-Item -ItemType Directory -Force -Path tools
55+
56+
[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12
5557
Invoke-WebRequest -Uri https://dist.nuget.org/win-x86-commandline/latest/nuget.exe -OutFile $nuget
5658
}
5759

0 commit comments

Comments
 (0)