Skip to content
This repository was archived by the owner on Mar 12, 2021. It is now read-only.

Commit a544516

Browse files
author
moozzyk
committed
Making sure that the build uses the latest nuget.exe
1 parent 4711271 commit a544516

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.nuget/NuGet.targets

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@
9393
<DownloadNuGet OutputFilename="$(NuGetExePath)" Condition=" '$(DownloadNuGetExe)' == 'true' AND !Exists('$(NuGetExePath)')" />
9494
</Target>
9595

96-
<Target Name="RestorePackages" DependsOnTargets="CheckPrerequisites">
96+
<Target Name="RestorePackages" DependsOnTargets="CheckPrerequisites">
9797
<Exec Command="$(RestoreCommand)"
9898
Condition="'$(OS)' != 'Windows_NT' And Exists('$(PackagesConfig)')" />
9999

@@ -129,7 +129,7 @@
129129
130130
Log.LogMessage("Downloading latest version of NuGet.exe...");
131131
WebClient webClient = new WebClient();
132-
webClient.DownloadFile("https://www.nuget.org/nuget.exe", OutputFilename);
132+
webClient.DownloadFile("https://dist.nuget.org/win-x86-commandline/latest/nuget.exe", OutputFilename);
133133
134134
return true;
135135
}

0 commit comments

Comments
 (0)