NuGet

Microsoft Corporation·Microsoft.NuGet

The package manager for .NET

NuGet is the package manager for .NET. It enables developers to create, share, and consume useful .NET libraries. NuGet client tools provide the ability to produce and consume these libraries as "packages".

winget install --id Microsoft.NuGet --exact --source winget

Latest 7.6.0·May 12, 2026

Release Notes

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 pack now detects the ambiguity and raises NU5051 with an actionable error message instead of producing unexpected output.
  • Package management APIs for file-based apps - #14390
    • NuGet now exposes APIs that dotnet package add, list, remove, and update use for file-based apps that reference packages with #:package directives in C# source files.
  • Read push API key from environment variable - #12539
    • dotnet nuget push can 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 push sends CI platform in user-agent header - #14740
    • nuget.exe push now 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-restore with Central Package Management no longer produces NU1008 - #12552
    • When using Central Package Management, dotnet add package --no-restore now correctly adds the PackageReference without a Version attribute instead of producing a restore error.
  • Fix Add-Migration error in Package Manager Console - #14862
    • Running Add-Migration in the NuGet Package Manager Console no longer throws a "GetProjectFromHierarchy must be called on the UI thread" error.
  • NuGetAuditSuppress with packages.config now supports multiple suppressions - #14825
    • Previously, only the first NuGetAuditSuppress entry was honored in packages.config projects. All suppressions are now applied correctly.
  • 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 NuGetProjectServiceV1 brokered service now uses the correct serialization settings, making it usable from out-of-process Visual Studio extensions.
  • 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 --vulnerable now 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 package resolves conditional TargetFramework values correctly - #14339
    • dotnet list package no longer fails when a project uses a TargetFramework property value that matches a real framework moniker, such as net9.0-windows with conditional PackageReference elements.
  • 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-mode no longer produces a false NU1004 error when a .NET project references a .NET Framework project.
  • Fix intermittent "Failed to resolve SDK" error during parallel restores - #10935
    • Parallel dotnet restore processes no longer intermittently fail with "Failed to resolve SDK" when the package is already installed in the global packages folder. List of commits in this release Community contributions Thank you to all the contributors who helped make this NuGet release awesome!
  • nareshjo
    • 7237 Reduce allocations in LicenseExpressionTokenizer.HasValidCharacters by caching Regex instance
    • 7174 Resolve dependency graph items reduce allocation size
  • jjonescz
    • 7233 Make virtual project builder parameter required in MSBuildAPIUtility
    • 7169 Add support for file-based apps to the XPlat CLI
  • 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-restore ignoring Central Package Management

Installer type: portable

ArchitectureScopeDownloadSHA256
x86Download751EE5E79481626A428C1241DC7F94BCA2739B32588E669715BC5FB54D8FB8A2

Details

Homepage
https://www.nuget.org/
License
Apache-2.0
Publisher
Microsoft Corporation
Support
https://www.nuget.org/policies/Contact
Privacy Policy
https://privacy.microsoft.com/privacystatement
Copyright
Copyright © .NET Foundation and Contributors.
Moniker
nuget

Tags

.netc#dotnetlibrariesdownloaderinstallerpackagemanagerpackagesrequirescmdsoftwarerepository

Older versions (47)

7.3.1
ArchitectureScopeDownloadSHA256
x86Download08EC6563B4A1DDD113D42531067539FFCD0C2D9632D839AD4EB58A0D5DDF1919
7.3.0
ArchitectureScopeDownloadSHA256
x86Download39B6309E76C832E4DE2AC7F86DA9A8AFAA12BC5B4307EA335E9D69E2D6D1A94A
7.0.1
ArchitectureScopeDownloadSHA256
x86Download8DDC8CC04298FA08277EFDCA35373EB158F0C95F5BB1B15EFCAB2B62952028F6
7.0.0
ArchitectureScopeDownloadSHA256
x86DownloadDC57EC6280CA531F9265A87446F4D2DDC657E0AA834B5AE0DC8100AC4C55D4D1
6.14.0
ArchitectureScopeDownloadSHA256
x86Download92DBED160DDEE0F64B901E907439E021211B428E57C089ECC12FC38DCC4BD9A5
6.13.2
ArchitectureScopeDownloadSHA256
x86Download506085572A662F03BEC1A5FFE43F81A240FF99B3765B8DBC0E22C33532775227
x64Download506085572A662F03BEC1A5FFE43F81A240FF99B3765B8DBC0E22C33532775227
6.13.1
ArchitectureScopeDownloadSHA256
x86Download10A2A3A2FD4604F21F7E5A74D1220C84C1AB8B2ACBF8D81F1AA0270BA48454DA
x64Download10A2A3A2FD4604F21F7E5A74D1220C84C1AB8B2ACBF8D81F1AA0270BA48454DA
6.12.2
ArchitectureScopeDownloadSHA256
x86Download64F467376F2EE364BA389461DF4A29A8F8DD9AA38120D29046E70B9C82045D97
x64Download64F467376F2EE364BA389461DF4A29A8F8DD9AA38120D29046E70B9C82045D97
6.12.1
ArchitectureScopeDownloadSHA256
x86Download0790BB7A0C898E44B70F2B65E3070B4DB8AF23897E38B8653D72D268B6E8BB11
x64Download0790BB7A0C898E44B70F2B65E3070B4DB8AF23897E38B8653D72D268B6E8BB11
6.11.1
ArchitectureScopeDownloadSHA256
x86DownloadC0DDC9CB0633C4607DA7E8028EB4F91248C8B74E45A68B0C79FCFA7D78C2A481
6.11.0
ArchitectureScopeDownloadSHA256
x86Download133B9C1EFDC8D86BDCCAE9E296C9E4BC45A6D6472368611AA96B51B3E75FD2E3
6.10.0
ArchitectureScopeDownloadSHA256
x86DownloadBAD75B985CEF3B2E52FA6141B207DB25BAFA8724189A420400FCF2787248BF4E
6.9.1
ArchitectureScopeDownloadSHA256
x86Download82BB13E2365E1E5EE7D0975618DCF90B279427DE8A7ECB338B9B78BFC457D51B
6.8.0
ArchitectureScopeDownloadSHA256
x86Download6C9E1B09F06971933B08080E7272A2CA5B0D8222500744DA757BD8D019013A3D
6.7.0
ArchitectureScopeDownloadSHA256
x86Download1A98B29BCC3AEA4BA8CA66D35523F8E90CB28E54588F9C13589C50AF5D8623C9
6.6.1
ArchitectureScopeDownloadSHA256
x86DownloadD9E2D4DB12FF444B684A40CBEB2775A2ADF3F65980E8A55F3C006FAEC2B89B7C
6.5.0
ArchitectureScopeDownloadSHA256
x86DownloadD5FCE5185DE92B7356EA9264B997A620E35C6F6C3C061E471E0DC3A84B3D74FD
6.4.0
ArchitectureScopeDownloadSHA256
x86Download26730829B240581A3E6A4E276B9ACE088930032DF0C680D5591BECCF6452374E
6.3.1
ArchitectureScopeDownloadSHA256
x86Download046632DFCF4C78787A396C2A55E070808592FF1EDED9340E645991E7A4DC5CC4
6.3.0
ArchitectureScopeDownloadSHA256
x86Download38257F945B3662F5C81D646F2CD940365642E2C4941B34C0E5AE3F4281F9BD2D
6.2.1
ArchitectureScopeDownloadSHA256
x86DownloadA79F342E739FDB3903A92218767E7813E04930DFF463621B6D2BE2D468B84E05
6.1.0
ArchitectureScopeDownloadSHA256
x86Download432D322B16FFAB3FED5D24AB7EA30AE10C555A00339A9BF53060AA4B2AEE7925
6.0.2
ArchitectureScopeDownloadSHA256
x86DownloadD8EF145BD1C338E7D40E34BD81278ECB68A4928DE4E464DA3B8E961FE624A2C9
5.11.2
ArchitectureScopeDownloadSHA256
x86DownloadE11008D459A2EB788F56DB8887EC1034EF7C46128A08C4AEAD44B42FE32EC088
5.10.0
ArchitectureScopeDownloadSHA256
x86Download852B71CC8C8C2D40D09EA49D321FF56FD2397B9D6EA9F96E532530307BBBAFD3
5.9.2
ArchitectureScopeDownloadSHA256
x86DownloadB27D388CDFF638950D9B6D0083B7AE860EA2D5452E4817412BC170C31BC986C0
5.8.1
ArchitectureScopeDownloadSHA256
x86Download3CE2F08716277CE3A7556893B0A39E5C2BF1DD6765AFD54843700D4A35D7C058
5.7.2
ArchitectureScopeDownloadSHA256
x86Download51DF53BBD129BB532DEEA16836E3499A2FC371B227476EA7F9801ED7A274B2A9
5.6.0
ArchitectureScopeDownloadSHA256
x86DownloadF8593A00DCD769D4978DF7E8F9B5D3D93B33F4E1CC62A757E19AA595D759F76C
5.5.1
ArchitectureScopeDownloadSHA256
x86DownloadDEA03B9CD25EF868DD2FFC4FC4C5A04CE92657E3D37BCCF0F0B7C09B0172A8E9
5.4.0
ArchitectureScopeDownloadSHA256
x86Download880F8D306A65932B11F7EDD7768B57D20E78FC618B21D785B303DA27FACC9A70
5.3.1
ArchitectureScopeDownloadSHA256
x86DownloadE3E46EB415561C778A7FDEC7194BCA9811C6E7F4066CC8CC85244C391B969C11
5.2.1
ArchitectureScopeDownloadSHA256
x86Download4BA73930BBFDBD4C4416488C118B58F1388CFDFC9D8A0131268A95124E77BEF8
5.1.0
ArchitectureScopeDownloadSHA256
x86Download0ACE4F53493332C9A75291EE96ACD76B371B4E687175E4852BF85948176D7152
5.0.2
ArchitectureScopeDownloadSHA256
x86Download3E41E6E736441198C3E7FFCED751D1F0E9755BEDCAABF07BAED413F08F635B9B
4.9.5
ArchitectureScopeDownloadSHA256
x86Download9FF8AC3F7F17DE12BE74FCC0609727BA1083D7CF524F5A466ABF76C705ABA8FB
4.8.2
ArchitectureScopeDownloadSHA256
x86Download40C81AA1BA84E87819D570C568AEF08678C7C1213654B66EFC06CE834EE7C1A5
4.7.3
ArchitectureScopeDownloadSHA256
x86Download23992D2D63A78F595A22E0163ADA5B3471B46D1976795D979ACD7253D5237978
4.6.4
ArchitectureScopeDownloadSHA256
x86DownloadB25E40B3D3844B1D66AEA56EE0DD807615AB795FDC27523E9DFBB5745143B9F0
4.5.3
ArchitectureScopeDownloadSHA256
x86DownloadE56B612C615377B700491A190EF0C576CDE3103A29B5B098287E57826968E60A
4.4.3
ArchitectureScopeDownloadSHA256
x86Download5161990A86089BCC3EAA1D82D7F44F0CFABBE795E55C104CF8E17E4C56462B2F
4.3.1
ArchitectureScopeDownloadSHA256
x86Download17923EBA46EC6FFF200928F862DAA9038742417034353E2407C3B46B3491E206
4.1.0
ArchitectureScopeDownloadSHA256
x86Download4C1DE9B026E0C4AB087302FF75240885742C0FAA62BD2554F913BBE1F6CB63A0
3.5.0
ArchitectureScopeDownloadSHA256
x86Download399EC24C26ED54D6887CDE61994BB3D1CADA7956C1B19FF880F06F060C039918
3.4.4
ArchitectureScopeDownloadSHA256
x86DownloadC12D583DD1B5447AC905A334262E02718F641FCA3877D0B6117FE44674072A27
3.3.0
ArchitectureScopeDownloadSHA256
x86DownloadAF8EE5C2299A7D71F4BFEFE046701AF551C348B8C9F6C10302598262F16D42AA
2.8.6
ArchitectureScopeDownloadSHA256
x86DownloadA6BE87794A542E3F518B718437443C6C29D379D12CC94BEA7DE787BF05BABF83