Skip to content

Commit

Permalink
NuGet.org now requires TLS 1.2
Browse files Browse the repository at this point in the history
  • Loading branch information
jnm2 committed Jan 11, 2021
1 parent 4d4640c commit 744880d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions build.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand Down

0 comments on commit 744880d

Please sign in to comment.