{"id":42163,"date":"2022-09-12T08:13:14","date_gmt":"2022-09-12T15:13:14","guid":{"rendered":"https:\/\/devblogs.microsoft.com\/dotnet\/?p=42163"},"modified":"2022-09-09T11:16:46","modified_gmt":"2022-09-09T18:16:46","slug":"dotnet-now-on-windows-package-manager","status":"publish","type":"post","link":"https:\/\/devblogs.microsoft.com\/dotnet\/dotnet-now-on-windows-package-manager\/","title":{"rendered":".NET now on Windows Package Manager"},"content":{"rendered":"<p>Windows users now have a convenient way of installing .NET: the Windows Package Manager (winget). Winget makes it simple to find, install, uninstall, and update .NET from a Command prompt or PowerShell session.<\/p>\n<p>You can use winget to discover .NET offerings and install the SDK or one or more of the .NET Runtimes (.NET Runtime\/.NET Desktop Runtime\/ASP.NET Core Runtime) of your choice without worrying about dependencies and configurations. Maintain .NET effortlessly by checking for .NET updates using simple winget commands.<\/p>\n<p>Here\u2019s the list of .NET versions available on Windows Package Manager:<\/p>\n<table>\n<thead>\n<tr>\n<th style=\"text-align: center\"><strong>.NET Version<\/strong><\/th>\n<th style=\"text-align: center\"><strong>Support Phase<\/strong><\/th>\n<th style=\"text-align: center\"><strong>SDK\/Runtime<\/strong><\/th>\n<th style=\"text-align: center\"><strong>Winget Short-Name<\/strong><\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td style=\"text-align: center\">6.0<\/td>\n<td style=\"text-align: center\">Full<\/td>\n<td style=\"text-align: center\">SDK\/.NET Runtime\/.NET Desktop Runtime\/ASP.NET Core Runtime<\/td>\n<td style=\"text-align: center\">dotnet-sdk-6, dotnet-runtime-6, dotnet-desktop-6, aspnetcore-6<\/td>\n<\/tr>\n<tr>\n<td style=\"text-align: center\">3.1<\/td>\n<td style=\"text-align: center\">Maintenance<\/td>\n<td style=\"text-align: center\">SDK\/.NET Runtime\/.NET Desktop Runtime\/ASP.NET Core Runtime<\/td>\n<td style=\"text-align: center\">dotnet-sdk-3_1, dotnet-runtime-3_1, dotnet-desktop-3_1, aspnetcore-3_1<\/td>\n<\/tr>\n<tr>\n<td style=\"text-align: center\">5.0<\/td>\n<td style=\"text-align: center\">Out-of-Support<\/td>\n<td style=\"text-align: center\">SDK\/.NET Runtime\/.NET Desktop Runtime\/ASP.NET Core Runtime<\/td>\n<td style=\"text-align: center\">dotnet-sdk-5, dotnet-runtime-5, dotnet-desktop-5, aspnetcore-5<\/td>\n<\/tr>\n<tr>\n<td style=\"text-align: center\">7.0 (Preview)<\/td>\n<td style=\"text-align: center\">N\/A<\/td>\n<td style=\"text-align: center\">SDK\/.NET Runtime\/.NET Desktop Runtime\/ASP.NET Core Runtime<\/td>\n<td style=\"text-align: center\">dotnet-sdk-preview, dotnet-runtime-preview, dotnet-desktop-preview, aspnetcore-preview<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>Please note that regular updates are available for supported .NET versions via winget. Out-of-Support versions do not get any updates.<\/p>\n<p>To get started, see this page on <a href=\"https:\/\/docs.microsoft.com\/windows\/package-manager\/winget\/\">installing and using the winget tool<\/a>.<\/p>\n<h2>Search .NET using winget<\/h2>\n<p>To discover all .NET offerings on the Windows Package Manager run the following command:<\/p>\n<pre><code class=\"language-shell\">winget search Microsoft.DotNet<\/code><\/pre>\n<p><img decoding=\"async\" src=\"https:\/\/devblogs.microsoft.com\/dotnet\/wp-content\/uploads\/sites\/10\/2022\/09\/Search-Dotnet-New.png\" alt=\".NET Search Result Screenshot\" \/><\/p>\n<h2>Install .NET using winget<\/h2>\n<p>You can install .NET SDK or Runtime (.NET Runtime\/.NET Desktop Runtime\/ASP.NET Core Runtime) using following winget command:<\/p>\n<pre><code class=\"language-shell\">winget install &lt;package-id&gt;<\/code><\/pre>\n<p>For example, this is how you install the .NET 6 SDK:<\/p>\n<pre><code class=\"language-shell\">winget install Microsoft.DotNet.SDK.6<\/code><\/pre>\n<p><img decoding=\"async\" src=\"https:\/\/devblogs.microsoft.com\/dotnet\/wp-content\/uploads\/sites\/10\/2022\/09\/Install-Dotnet-New.png\" alt=\".NET Install Screenshot\" \/><\/p>\n<p>Alternatively, you can also install the same package using it&#8217;s short name as follows:<\/p>\n<pre><code class=\"language-shell\">winget install dotnet-sdk-6 <\/code><\/pre>\n<p>You can install other versions of the SDK\/Runtimes by substituting the version number, such as 6, with the other version number or word Preview. The following example installs the preview release of the .NET SDK:<\/p>\n<pre><code class=\"language-shell\">winget install Microsoft.DotNet.SDK.Preview<\/code><\/pre>\n<p>To specify the architecture (x86, x64, and Arm64), use the following command:<\/p>\n<pre><code class=\"language-shell\">winget install --architecture x64 Microsoft.DotNet.SDK.6<\/code><\/pre>\n<h2>Uninstall .NET using winget<\/h2>\n<pre><code class=\"language-shell\">winget uninstall Microsoft.DotNet.SDK.6<\/code><\/pre>\n<p><img decoding=\"async\" src=\"https:\/\/devblogs.microsoft.com\/dotnet\/wp-content\/uploads\/sites\/10\/2022\/09\/Uninstall-Dotnet-New.png\" alt=\".NET Uninstall Screenshot\" \/><\/p>\n<h2>Update .NET using winget<\/h2>\n<p>Use the following command to check if a .NET update is available for the installed version(s) of .NET.<\/p>\n<pre><code class=\"language-shell\">winget upgrade<\/code><\/pre>\n<p>Update to new version of .NET using winget install command. Refer to section &#8220;Install .NET using winget&#8221; for more details. If both x86 and x64 .NET versions are installed on the machine and you only want to update one, you can use the &#8220;&#8211;architecture&#8221; option to update a specific one.<\/p>\n<h2>Important Links<\/h2>\n<ul>\n<li><a href=\"https:\/\/docs.microsoft.com\/windows\/package-manager\/winget\/#commands\">Winget Commands Guide<\/a><\/li>\n<li><a href=\"https:\/\/docs.microsoft.com\/dotnet\/core\/install\/windows?tabs=net60\">Install .NET on Windows<\/a><\/li>\n<li><a href=\"https:\/\/docs.microsoft.com\/windows\/package-manager\/\">About Windows Package Manager<\/a><\/li>\n<li><a href=\"https:\/\/dotnet.microsoft.com\/platform\/support\/policy\/dotnet-core\">.NET Support Policy<\/a><\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>.NET is now available to install through the Windows Package Manager (Winget). Read all about how what it is, how to install, and more.<\/p>\n","protected":false},"author":93994,"featured_media":42164,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[685],"tags":[7611,7671],"class_list":["post-42163","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-dotnet","tag-dotnet-7","tag-windows-package-manager"],"acf":[],"blog_post_summary":"<p>.NET is now available to install through the Windows Package Manager (Winget). Read all about how what it is, how to install, and more.<\/p>\n","_links":{"self":[{"href":"https:\/\/devblogs.microsoft.com\/dotnet\/wp-json\/wp\/v2\/posts\/42163","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\/93994"}],"replies":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/dotnet\/wp-json\/wp\/v2\/comments?post=42163"}],"version-history":[{"count":0,"href":"https:\/\/devblogs.microsoft.com\/dotnet\/wp-json\/wp\/v2\/posts\/42163\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/dotnet\/wp-json\/wp\/v2\/media\/42164"}],"wp:attachment":[{"href":"https:\/\/devblogs.microsoft.com\/dotnet\/wp-json\/wp\/v2\/media?parent=42163"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/dotnet\/wp-json\/wp\/v2\/categories?post=42163"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/dotnet\/wp-json\/wp\/v2\/tags?post=42163"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}