Skip to content
This repository has been archived by the owner on Apr 20, 2023. It is now read-only.

Commit

Permalink
Update tls (#13405)
Browse files Browse the repository at this point in the history
Co-authored-by: Silvio Guiso <v-siguis@microsoft.com>
  • Loading branch information
silvioguiso and Silvio Guiso authored Jun 22, 2020
1 parent 8fb5f7e commit 26d90c3
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions packaging/windows/clisdk/generatenupkg.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ param(
[Parameter(Mandatory=$true)][string]$NupkgFile
)

[Net.ServicePointManager]::SecurityProtocol = [Net.ServicePointManager]::SecurityProtocol -bOR [Net.SecurityProtocolType]::Tls12

. "$PSScriptRoot\..\..\..\scripts\common\_common.ps1"
$RepoRoot = Convert-Path "$PSScriptRoot\..\..\.."
$NuGetDir = Join-Path $RepoRoot ".nuget"
Expand All @@ -28,6 +30,11 @@ function DownloadNugetExe
Write-Output 'Downloading nuget.exe to ' + $NuGetExe
wget https://dist.nuget.org/win-x86-commandline/v3.5.0-rc1/NuGet.exe -OutFile $NuGetExe
}

if (-not (Test-Path $NuGetExe)) {
Write-Error "Could not download nuget.exe"
Exit 1
}
}

function GenerateNupkg
Expand Down

0 comments on commit 26d90c3

Please sign in to comment.