NuGet 5.10 Release Notes

NuGet distribution vehicles:

NuGet version Available in Visual Studio version Available in .NET SDK(s)
5.10.0 Visual Studio 2019 version 16.10 5.0.3001

1 Installed with Visual Studio 2019 with .NET Core workload

Note

Visual Studio 16.10, MSBuild 16.10, and .NET 5.0.300+ requires NuGet.exe 5.10 or later.

Summary: What's New in 5.10

  • Signing: implement dotnet trusted-signers command - #8053

  • Make default validation disabled on Linux, but enabled by default on Windows - #10713

  • Add an ENV Variable for Package Signing Verification on .NET 5+ Linux/MAC - #10742

  • Improve install new package performance for large solutions - #10166

  • Add the project type nfproj to the list of supportedProjectExtensions for Nuget CLI. - #10562

Issues fixed in this release

  • Suppress the <requireLicenseAcceptance> element when packing a project - #5133

  • [CPVM] preview warning should be shown on dotnet cli - #10226

  • Update the background and foreground color tokens of the PMUI to CommonDocumentColors - #10608

  • [Bug Bash] Error “operation canceled by user” show in Error List window when switching between tabs quickly in PM UI - #10671

  • PM UI: Improve package installation performance on the solution level - #10210

  • Replace GetService with GetServiceAsync everywhere in NuGet.Clients - #3784

  • NuGet.exe pack performance problem with .. relative path - #5016

  • The performance of "nuget pack" decreases with increasing levels in the source paths - #5706

  • NuGet doesn't error when packaging nuspec with duplicate files. - #6941

  • NuGet pack "The DateTimeOffset specified cannot be converted into a Zip file timestamp" - #7001

  • Timestamps of file of packed package is shifted by the timezone - #7395

  • NU1004 should contain more actionable information - #7696

  • [Bug Bash][Test Failure] The empty/malformed lock file should not be updated when running ‘dotnet restore --use-lock-file --locked-mode’ - #8640

  • NuGetVersionRange allows logically incorrect ranges to be parsed - #9145

  • PM UI can’t show distinguishable background color between selected and hovered package sources - #9538

  • Checkbox for selecting projects to install to isn't being read by screen reader - #9578

  • Details Pane Versions Dropdown default selection should be Installed/LatestStable on Installed/Updates tabs - #9887

  • Remove workaround account for some .NET 5 SDKs report TargetPlatformMoniker of ,Version= - #9913

  • dotnet nuget verify is too quiet - #10316

  • VersionRange cannot parse single-digit ranges - #10342

  • VS Solution manager throws null exception for during debugging - #10352

  • Move CLI exception messages to String Resource files - #10392

  • Remove dead code (TabItemButtonAutomationPeer) - #10435

  • Update context menu should scroll to first selected item - #10498

  • Solution PMUI Details has overlapping horizontal bar - #10533

  • Signing: primary signature details not displayed when certificate expired and timestamp untrusted - #10535

  • Having no enabled sources prevents the PM UI from showing - #10541

  • Package Metadata (details, deprecation) are sometimes not pulled from nuget.org in CodeSpaces - #10549

  • PMUI initialization fails with exception during debug session - #10559

  • nuget restore results in a package integrity check failure on big endian system - #10567

  • FormatException is thrown instead of PackagingException - #10595

  • CPVM - Concurrency issues in the graph walking algorithm - #10598

  • Add PMC powershell version telemetry - #10609

  • Improve NuGetVersion sort performance - #10611

  • Trusted-signers Add has inconsistent arguments - #10647

  • Vs2019 v16.9.0: Switching tabs in NuGet Package Manager from "Updates" to "Installed" doesn't update the frame. - #10654

  • Remove the "v" from the version number in PMUI - #10677

  • INuGetProjectService.GetInstalledPackagesAsync throws before receiving CPS project system nomination - #10681

  • Embedded Icons cause Access Denied from source "Microsoft Visual Studio Offline Packages" on Browse tab - #10687

  • INuGetProjectService.GetInstalledPackagesAsync throws when MSBuildProjectExtensionsPath is not set - #10739

  • "dotnet nuget remove source nuget.org" doesn't work the first time - #10745

  • Nuget blocks a threadpool thread in an async method making a synchronous call to the UI thread - #10775

  • PackageLoadContext.GetInstalledAndTransitivePackagesAsync is dead code and hurting performance - #10790

  • Use embedded icon in NuGet SDK packages - #10795

  • Update the SPDX license list - #10806

List of all issues fixed in this release - 5.10

List of commits in this release - 5.10.0

Community contributions

Thank you to all the contributors who helped make this NuGet release awesome!

Who PRs Issues
louis-z 3991 VersionRange cannot parse single-digit ranges - #10342
omajid 3860 NuGet.Client build.sh is broken - #10139
Nirmal4G 3623 NuGet.Client build.sh is broken - #10139
BlackGad 3953 The performance of "nuget pack" decreases with increasing levels in the source paths - #5706
BlackGad 3953 NuGet.exe pack performance problem with .. relative path - #5016
marcin-krystianc 3940 CPVM - Concurrency issues in the graph walking algorithm - #10598
josesimoes 3943 Add the project type nfproj to the list of supportedProjectExtensions for Nuget CLI. - #10562

Feedback welcome

Your feedback is important to us. If there are any problems with this release, check our GitHub Issues and Visual Studio Developer Community for existing issues. For new issues within NuGet, please report a GitHub Issue. For general NuGet experience issues, let us know via the Report a Problem option found in your favorite IDE under Help > Report a Problem.