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

Commit 26d90c3

Browse files
silvioguisoSilvio Guiso
and
Silvio Guiso
authored
Update tls (#13405)
Co-authored-by: Silvio Guiso <v-siguis@microsoft.com>
1 parent 8fb5f7e commit 26d90c3

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

packaging/windows/clisdk/generatenupkg.ps1

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@ param(
1111
[Parameter(Mandatory=$true)][string]$NupkgFile
1212
)
1313

14+
[Net.ServicePointManager]::SecurityProtocol = [Net.ServicePointManager]::SecurityProtocol -bOR [Net.SecurityProtocolType]::Tls12
15+
1416
. "$PSScriptRoot\..\..\..\scripts\common\_common.ps1"
1517
$RepoRoot = Convert-Path "$PSScriptRoot\..\..\.."
1618
$NuGetDir = Join-Path $RepoRoot ".nuget"
@@ -28,6 +30,11 @@ function DownloadNugetExe
2830
Write-Output 'Downloading nuget.exe to ' + $NuGetExe
2931
wget https://dist.nuget.org/win-x86-commandline/v3.5.0-rc1/NuGet.exe -OutFile $NuGetExe
3032
}
33+
34+
if (-not (Test-Path $NuGetExe)) {
35+
Write-Error "Could not download nuget.exe"
36+
Exit 1
37+
}
3138
}
3239

3340
function GenerateNupkg

0 commit comments

Comments
 (0)