Making sure that the build uses the latest nuget.exe

This commit is contained in:
moozzyk 2016-07-14 18:12:16 -07:00
Родитель 4711271beb
Коммит a544516f9c
1 изменённых файлов: 2 добавлений и 2 удалений

Просмотреть файл

@ -93,7 +93,7 @@
<DownloadNuGet OutputFilename="$(NuGetExePath)" Condition=" '$(DownloadNuGetExe)' == 'true' AND !Exists('$(NuGetExePath)')" /> <DownloadNuGet OutputFilename="$(NuGetExePath)" Condition=" '$(DownloadNuGetExe)' == 'true' AND !Exists('$(NuGetExePath)')" />
</Target> </Target>
<Target Name="RestorePackages" DependsOnTargets="CheckPrerequisites"> <Target Name="RestorePackages" DependsOnTargets="CheckPrerequisites">
<Exec Command="$(RestoreCommand)" <Exec Command="$(RestoreCommand)"
Condition="'$(OS)' != 'Windows_NT' And Exists('$(PackagesConfig)')" /> Condition="'$(OS)' != 'Windows_NT' And Exists('$(PackagesConfig)')" />
@ -129,7 +129,7 @@
Log.LogMessage("Downloading latest version of NuGet.exe..."); Log.LogMessage("Downloading latest version of NuGet.exe...");
WebClient webClient = new WebClient(); WebClient webClient = new WebClient();
webClient.DownloadFile("https://www.nuget.org/nuget.exe", OutputFilename); webClient.DownloadFile("https://dist.nuget.org/win-x86-commandline/latest/nuget.exe", OutputFilename);
return true; return true;
} }