File tree 2 files changed +14
-1
lines changed 2 files changed +14
-1
lines changed Original file line number Diff line number Diff line change 3
3
4
4
IF EXIST .nuget\NuGet.exe goto part2
5
5
echo 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 "
7
7
8
8
:part2
9
9
set 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