Move to latest NuGet.exe (#23786)

* Move to latest NuGet.exe
- 5.3.0 -> 5.6.0
- should improve performance and may improve reliability

* Also switch from NuGet.Build.Tasks to NuGet.Packaging
- move to 5.6.0 version here too
- reduce transitive dependencies; we don't need them all
This commit is contained in:
Doug Bunting 2020-07-10 10:15:45 -07:00 committed by GitHub
parent 02bc393571
commit 59433bcadd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 3 deletions

View File

@ -12,7 +12,7 @@
</PropertyGroup>
<ItemGroup>
<PackageReference Include="NuGet.Build.Tasks" Version="5.3.0" />
<PackageReference Include="NuGet.Packaging" Version="5.6.0" />
<PackageReference Include="Microsoft.Extensions.DependencyModel" Version="2.1.0" />
</ItemGroup>

View File

@ -25,9 +25,8 @@ if (-not (Test-Path $NuGetDir)) {
}
if (-not (Test-Path $NuGetExe)) {
# Using 5.3.0 to workaround https://github.com/NuGet/Home/issues/5016
Write-Output "Downloading nuget.exe to $NuGetExe"
wget https://dist.nuget.org/win-x86-commandline/v5.3.0/nuget.exe -OutFile $NuGetExe
wget https://dist.nuget.org/win-x86-commandline/v5.6.0/nuget.exe -OutFile $NuGetExe
}
& $NuGetExe pack $NuspecFile `