NuGet 5.1 Release Notes

NuGet distribution vehicles:

NuGet version Available in Visual Studio version Available in .NET SDK(s)
5.1.0 Visual Studio 2019 version 16.1 2.1.70X1, 2.2.30X2

1Installed with Visual Studio 2019 with .NET Core workload

2Available as an optional install with Visual Studio 2019 with .NET Core workload

Summary: What's New in 5.1

  • Support to skip a package push if it already exists to allow for better integration with CI/CD workflows - #1630

  • Visual Studio now provides a convenient link to the the package's nuget.org gallery page - #5299

  • Support for new .NET Core 3.0 assets such as Targeting Packs and Runtime Packs

    • NuGet pack and restore support for FrameworkReferences to enable targeting and runtime package references - #7342
    • Support "download only" package scenario with PackageDownload - #7339
    • Exlcude runtime and targeting packs from search results & restore graph using PackageType - #7337

Issues fixed in this release

Bugs

  • Plugins: exception details lost during plugin creation - #8057

  • PackageReference range with exclusive lower bound does not work if the lower bound is present on one of the sources. - #8054

  • Improve IsPackableFalseError message - #8021

  • Packages Lock File - regenerate lock file when project graph changes - #8019

  • ProjectSystem bug: Nuget Packages getting auto removed - #8017

  • Add a target for returning the FrameworkReference similar to CollectPackageDownloads and CollectPackageReferences - #8005

  • HTTP cache: RepositoryResources resource is not cached in a versioned way - #7997

  • Logging: exception callstacks are not reported with detailed verbosity - #7955

  • Change all NuGet Docs URLs to use HTTPS - #7950

  • Improve NU3024 warning message - #7933

  • lock file not updating when packagereference removed - #7930

  • Improve the error case handling when validating licenseurl and license element in nuspec - #7915

  • PM UI - right click on tab header and clicking "Open file location" results in error - #7913

  • Plugins: log when plugin process exits - #7907

  • Plugins: high collision rate in logging datetime values - #7899

  • Manifest.ReadFrom fails on any nuspec with LicenseExpression - #7894

  • RestoreLockedMode: Unexpected NU1004 when ProjectReference refers to a project with custom AssemblyName - #7889

  • Better error message when the plugin startup fails with an exception - #7857

  • When doing a NoOp restore, avoid *.dgspec.json write in obj directory - #7854

  • GeneratePathProperty=true fails to generate property on case mismatch - #7843

  • Settings: illegal character in package source path can crash VS - #7820

  • If lock file is deleted, restore does not generate lock file on NoOp - #7807

  • License URL and license causes read error with Metadata - #7547

  • Unhandled exceptions in V2FeedParser - #7523

  • nuget.exe returns exit code zero for invalid arguments - #7178

  • Update Errors and warning docs to reflect signing related scenarios - #6498

  • Assets file should use relative paths to enable moving projects more easily - #4582

DCRs

  • Plugins: enable diagnostic logging - #7859

  • Make Tizen 6 map to NetStandard 2.1 - #7773

List of all issues fixed in this release - 5.1 RTM