{"id":3028,"date":"2024-02-13T16:33:14","date_gmt":"2024-02-14T00:33:14","guid":{"rendered":"https:\/\/devblogs.microsoft.com\/dotnet\/?p=3028"},"modified":"2024-02-13T16:33:14","modified_gmt":"2024-02-14T00:33:14","slug":"announcing-nuget-6-9","status":"publish","type":"post","link":"https:\/\/devblogs.microsoft.com\/dotnet\/announcing-nuget-6-9\/","title":{"rendered":"Announcing NuGet 6.9"},"content":{"rendered":"<p>NuGet 6.9 is included in <a href=\"https:\/\/visualstudio.microsoft.com\/downloads\/\">Visual Studio 2022<\/a> and <a href=\"https:\/\/dotnet.microsoft.com\/en-us\/download\/dotnet\/8.0\">.NET 8.0<\/a> out of the box. You can also download NuGet 6.9 for Windows, macOS, and Linux as a <a href=\"https:\/\/www.nuget.org\/downloads\">standalone executable<\/a>.<\/p>\n<p>In NuGet 6.9, we introduce some exciting new features and bug fixes, such as an improved multi-targeting experience in Visual Studio and support for the &#8216;dotnet search&#8217; command. For more information, and a detailed list of all changes, <a href=\"https:\/\/learn.microsoft.com\/en-us\/nuget\/release-notes\/nuget-6.9\">see our release notes<\/a>.<\/p>\n<h2>NuGet 6.9 Highlights<\/h2>\n<p><a href=\"https:\/\/learn.microsoft.com\/en-us\/nuget\/release-notes\/nuget-6.9\">New features in NuGet 6.9<\/a>:<\/p>\n<ul>\n<li><a href=\"#support-for-dotnet-search-command\">Support for dotnet search command<\/a><\/li>\n<li><a href=\"#Visual-Studio-UI-Multitargeting-Experience\">Visual Studio UI Multi-Targeting Experience<\/a><\/li>\n<\/ul>\n<h2>Support for dotnet search command<\/h2>\n<p>Starting with NuGet 6.9, you can now use the dotnet package search command for nuget.exe CLI experience to search one or more package sources for packages that match a search term. If no sources are specified, all sources defined in the nuget.config will be used. In addition, all available versions for a package can be listed. The command format is &#8216;dotnet package search [search term] [options]&#8217;.<\/p>\n<p>For example, the screenshot below shows the phrase &#8220;json&#8221; is searched across all sources present in the nuget.config file.<\/p>\n<p><a href=\"https:\/\/devblogs.microsoft.com\/dotnet\/wp-content\/uploads\/sites\/10\/2024\/02\/Screenshot-2024-02-13-161251-1.png\"><img decoding=\"async\" src=\"https:\/\/devblogs.microsoft.com\/dotnet\/wp-content\/uploads\/sites\/10\/2024\/02\/Screenshot-2024-02-13-161251-1.png\" alt=\"Image Screenshot 2024 02 13 161251\" width=\"549\" height=\"283\" class=\"alignnone size-full wp-image-3038\" srcset=\"https:\/\/devblogs.microsoft.com\/dotnet\/wp-content\/uploads\/sites\/10\/2024\/02\/Screenshot-2024-02-13-161251-1.png 549w, https:\/\/devblogs.microsoft.com\/dotnet\/wp-content\/uploads\/sites\/10\/2024\/02\/Screenshot-2024-02-13-161251-1-300x155.png 300w\" sizes=\"(max-width: 549px) 100vw, 549px\" \/><\/a><\/p>\n<p>Various different &#8216;options&#8217; are available to help narrow down your search, including &#8216;&#8211;take&#8217; and &#8216;&#8211;skip&#8217;. The screenshot below shows the phrase \u201cjson\u201d is searched across the sources that are present in the config file. The pagination here allows the user to skip the first package and render only two packages.<\/p>\n<p><a href=\"https:\/\/devblogs.microsoft.com\/dotnet\/wp-content\/uploads\/sites\/10\/2024\/02\/1-1.png\"><img decoding=\"async\" src=\"https:\/\/devblogs.microsoft.com\/dotnet\/wp-content\/uploads\/sites\/10\/2024\/02\/1-1-560x116.png\" alt=\"Image 1\" width=\"560\" height=\"116\" class=\"alignnone size-medium wp-image-3039\" \/><\/a><\/p>\n<p>By using the \u201c&#8211;source\u201d option, you will be able to specify the desired source of the search operation.<\/p>\n<p><a href=\"https:\/\/devblogs.microsoft.com\/dotnet\/wp-content\/uploads\/sites\/10\/2024\/02\/2-1.png\"><img decoding=\"async\" src=\"https:\/\/devblogs.microsoft.com\/dotnet\/wp-content\/uploads\/sites\/10\/2024\/02\/2-1-560x263.png\" alt=\"Image 2\" width=\"560\" height=\"263\" class=\"alignnone size-medium wp-image-3040\" \/><\/a><\/p>\n<p>You can also limit available versions of a package by using the &#8216;&#8211;exact-match&#8217; option, shown below.<\/p>\n<p><a href=\"https:\/\/devblogs.microsoft.com\/dotnet\/wp-content\/uploads\/sites\/10\/2024\/02\/3-1.png\"><img decoding=\"async\" src=\"https:\/\/devblogs.microsoft.com\/dotnet\/wp-content\/uploads\/sites\/10\/2024\/02\/3-1-519x350.png\" alt=\"Image 3\" width=\"519\" height=\"350\" class=\"alignnone size-medium wp-image-3041\" \/><\/a><\/p>\n<p>Finally, you can also utilize the &#8216;&#8211;verbosity&#8217; and &#8216;&#8211;format&#8217; options to customize the output rendering.<\/p>\n<p><a href=\"https:\/\/devblogs.microsoft.com\/dotnet\/wp-content\/uploads\/sites\/10\/2024\/02\/4-1.png\"><img decoding=\"async\" src=\"https:\/\/devblogs.microsoft.com\/dotnet\/wp-content\/uploads\/sites\/10\/2024\/02\/4-1.png\" alt=\"Image 4\" width=\"432\" height=\"333\" class=\"alignnone size-full wp-image-3042\" srcset=\"https:\/\/devblogs.microsoft.com\/dotnet\/wp-content\/uploads\/sites\/10\/2024\/02\/4-1.png 432w, https:\/\/devblogs.microsoft.com\/dotnet\/wp-content\/uploads\/sites\/10\/2024\/02\/4-1-300x231.png 300w\" sizes=\"(max-width: 432px) 100vw, 432px\" \/><\/a><\/p>\n<h2>Visual Studio UI Multitargeting Experience<\/h2>\n<p>In NuGet 6.9, we have made further improvements in managing packages for multitargeted projects in Visual Studio. When you have a multitargeted project, and a package is installed conditionally in every framework (for example, with different versions), conditional update will now update all conditions. Additionally, conditionally installed packages can now be uninstalled from within Visual Studio.<\/p>\n<h2>Closing<\/h2>\n<p>NuGet 6.9 comes with some exciting new features and bug fixes that will continue to improve your experience managing packages in your .NET projects!<\/p>\n<p>On behalf of the NuGet team and the entire .NET community, we&#8217;d like to express our sincere gratitude to all the <a href=\"https:\/\/learn.microsoft.com\/nuget\/release-notes\/nuget-6.7#community-contributions\">community contributors<\/a> who have generously given their time and expertise to improve NuGet this release. Thank you.<\/p>\n<p>For more details on NuGet 6.9, see our <a href=\"https:\/\/learn.microsoft.com\/en-us\/nuget\/release-notes\/nuget-6.9\">official release notes<\/a>.<\/p>\n<h2>Feedback<\/h2>\n<p>Your feedback is important to us. If there are any problems with this release, check our <a href=\"https:\/\/github.com\/NuGet\/Home\/issues\">GitHub Issues<\/a> and <a href=\"https:\/\/developercommunity.visualstudio.com\/\">Visual Studio Developer Community<\/a> for existing issues. For new issues within NuGet, please <a href=\"https:\/\/github.com\/NuGet\/Home\/issues\/new\/choose\">report a GitHub Issue<\/a>. For general NuGet experience issues, let us know via the <a href=\"https:\/\/docs.microsoft.com\/visualstudio\/ide\/how-to-report-a-problem-with-visual-studio\">Report a Problem<\/a> option found in your favorite IDE under <code>Help &gt; Report a Problem<\/code>.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>NuGet 6.9 is included in Visual Studio 2022 and .NET 8.0 out of the box. You can also download NuGet 6.9 for Windows, macOS, and Linux as a standalone executable. In NuGet 6.9, we introduce some exciting new features and bug fixes, such as an improved multi-targeting experience in Visual Studio and support for the [&hellip;]<\/p>\n","protected":false},"author":114002,"featured_media":58792,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[7874],"tags":[],"class_list":["post-3028","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-nuget"],"acf":[],"blog_post_summary":"<p>NuGet 6.9 is included in Visual Studio 2022 and .NET 8.0 out of the box. You can also download NuGet 6.9 for Windows, macOS, and Linux as a standalone executable. In NuGet 6.9, we introduce some exciting new features and bug fixes, such as an improved multi-targeting experience in Visual Studio and support for the [&hellip;]<\/p>\n","_links":{"self":[{"href":"https:\/\/devblogs.microsoft.com\/dotnet\/wp-json\/wp\/v2\/posts\/3028","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/devblogs.microsoft.com\/dotnet\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/devblogs.microsoft.com\/dotnet\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/dotnet\/wp-json\/wp\/v2\/users\/114002"}],"replies":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/dotnet\/wp-json\/wp\/v2\/comments?post=3028"}],"version-history":[{"count":0,"href":"https:\/\/devblogs.microsoft.com\/dotnet\/wp-json\/wp\/v2\/posts\/3028\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/dotnet\/wp-json\/wp\/v2\/media\/58792"}],"wp:attachment":[{"href":"https:\/\/devblogs.microsoft.com\/dotnet\/wp-json\/wp\/v2\/media?parent=3028"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/dotnet\/wp-json\/wp\/v2\/categories?post=3028"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/dotnet\/wp-json\/wp\/v2\/tags?post=3028"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}