File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 33
44IF EXIST .nuget\NuGet.exe goto part2
55echo Downloading latest version of NuGet.exe...
6- @ powershell -NoProfile -ExecutionPolicy unrestricted -Command " ((new-object net.webclient).DownloadFile('https://dist.nuget.org/win-x86-commandline/latest/nuget.exe', '.nuget\NuGet.exe')) "
6+ @ powershell -NoProfile -ExecutionPolicy unrestricted -Command " .\build\downloadnuget.ps1 "
77
88:part2
99set EnableNuGetPackageRestore = true
Original file line number Diff line number Diff line change 1+ Set-PSDebug - Trace 1
2+ [System.Net.ServicePointManager ]::SecurityProtocol
3+ [System.Net.ServicePointManager ]::SecurityProtocol = [System.Net.SecurityProtocolType ]::TLS12
4+ [System.Net.ServicePointManager ]::SecurityProtocol
5+ try
6+ {
7+ $client = New-Object System.Net.WebClient
8+ $client.DownloadFile (' https://dist.nuget.org/win-x86-commandline/latest/nuget.exe' , ' .nuget\NuGet.exe' )
9+ }
10+ catch [System.Exception ]
11+ {
12+ $Error [0 ].Exception.ToString()
13+ }
You can’t perform that action at this time.
0 commit comments