Σημείωμα
Η πρόσβαση σε αυτήν τη σελίδα απαιτεί εξουσιοδότηση. Μπορείτε να δοκιμάσετε να εισέλθετε ή να αλλάξετε καταλόγους.
Η πρόσβαση σε αυτήν τη σελίδα απαιτεί εξουσιοδότηση. Μπορείτε να δοκιμάσετε να αλλάξετε καταλόγους.
NuGet distribution vehicles:
| NuGet version | Available in Visual Studio version | Available in .NET SDK(s) |
|---|---|---|
| 7.6.0 | Visual Studio 2026 version 18.6.0 | 10.0.3001 |
1 Installed with Visual Studio 2026 with any .NET workload
Summary: What's New in 7.6.0
Treat TargetFramework(s) values as aliases - #5154
- This feature enables building for the same framework multiple times, enabling scenarios such as generating runtime specific assemblies for the same target framework, as well as making running benchmarks on different versions of the same package easier.
- Learn more about TargetFramework aliases
Pack is aliased-framework-aware - #14751
- When a project has multiple TargetFramework aliases that resolve to the same framework,
dotnet packnow detects the ambiguity and raises NU5051 with an actionable error message instead of producing unexpected output.
- When a project has multiple TargetFramework aliases that resolve to the same framework,
Package management APIs for file-based apps - #14390
- NuGet now exposes APIs that
dotnet package add,list,remove, andupdateuse for file-based apps that reference packages with#:packagedirectives in C# source files.
- NuGet now exposes APIs that
Read push API key from environment variable - #12539
dotnet nuget pushcan now read the API key from an environment variable, avoiding the need to pass secrets on the command line or store them in configuration files.
Issues fixed in this release
nuget pushsends CI platform in user-agent header - #14740nuget.exe pushnow includes the CI platform (Azure DevOps, GitHub Actions, and others) in the HTTP user-agent header, allowing package sources to identify where pushes originate.
dotnet add package --no-restorewith Central Package Management no longer produces NU1008 - #12552- When using Central Package Management,
dotnet add package --no-restorenow correctly adds thePackageReferencewithout aVersionattribute instead of producing a restore error.
- When using Central Package Management,
Fix
Add-Migrationerror in Package Manager Console - #14862- Running
Add-Migrationin the NuGet Package Manager Console no longer throws a "GetProjectFromHierarchy must be called on the UI thread" error.
- Running
NuGetAuditSuppresswith packages.config now supports multiple suppressions - #14825- Previously, only the first
NuGetAuditSuppressentry was honored in packages.config projects. All suppressions are now applied correctly.
- Previously, only the first
Fix context menu theming on Package Manager UI search box - #14799
- The right-click context menu on the search control in the NuGet Package Manager UI now follows the Visual Studio color theme.
Fix NuGetProjectServiceV1 for out-of-process consumers - #14732
- The
NuGetProjectServiceV1brokered service now uses the correct serialization settings, making it usable from out-of-process Visual Studio extensions.
- The
Fix context menu theming on Package Manager UI copy menus - #14704
- The right-click copy context menus in the Package Manager UI Package Details tab now follow the Visual Studio color theme.
dotnet list package --vulnerablenow shows vulnerabilities for deprecated packages - #14477- Previously, vulnerability information was not displayed for package versions that were both vulnerable and deprecated. Both statuses are now reported.
dotnet list packageresolves conditional TargetFramework values correctly - #14339dotnet list packageno longer fails when a project uses a TargetFramework property value that matches a real framework moniker, such asnet9.0-windowswith conditionalPackageReferenceelements.
Improved NU1107 error message with Central Package Management and transitive pinning - #12277
- The NU1107 version conflict error now provides relevant guidance when Central Package Management with transitive pinning is enabled, instead of suggesting actions that don't apply in that configuration.
Fix NU1004 for cross-framework references with locked mode - #12010
- Restoring with
--locked-modeno longer produces a false NU1004 error when a .NET project references a .NET Framework project.
- Restoring with
Fix intermittent "Failed to resolve SDK" error during parallel restores - #10935
- Parallel
dotnetrestore processes no longer intermittently fail with "Failed to resolve SDK" when the package is already installed in the global packages folder.
- Parallel
List of commits in this release
Community contributions
Thank you to all the contributors who helped make this NuGet release awesome!
- nareshjo
- jjonescz
- SimonCropp
- 7224 Use Ordinal string comparison for TargetAlias
- elantiguamsft
- 7201 Add --allow-untrusted-root flag to nuget sign and dotnet nuget sign
- slang25
- 7148 Fix
dotnet add package --no-restoreignoring Central Package Management
- 7148 Fix