.NET now on Windows Package Manager

Ashita Nagar

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.

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.

Here’s the list of .NET versions available on Windows Package Manager:

.NET Version Support Phase SDK/Runtime Winget Short-Name
6.0 Full SDK/.NET Runtime/.NET Desktop Runtime/ASP.NET Core Runtime dotnet-sdk-6, dotnet-runtime-6, dotnet-desktop-6, aspnetcore-6
3.1 Maintenance SDK/.NET Runtime/.NET Desktop Runtime/ASP.NET Core Runtime dotnet-sdk-3_1, dotnet-runtime-3_1, dotnet-desktop-3_1, aspnetcore-3_1
5.0 Out-of-Support SDK/.NET Runtime/.NET Desktop Runtime/ASP.NET Core Runtime dotnet-sdk-5, dotnet-runtime-5, dotnet-desktop-5, aspnetcore-5
7.0 (Preview) N/A SDK/.NET Runtime/.NET Desktop Runtime/ASP.NET Core Runtime dotnet-sdk-preview, dotnet-runtime-preview, dotnet-desktop-preview, aspnetcore-preview

Please note that regular updates are available for supported .NET versions via winget. Out-of-Support versions do not get any updates.

To get started, see this page on installing and using the winget tool.

Search .NET using winget

To discover all .NET offerings on the Windows Package Manager run the following command:

winget search Microsoft.DotNet

.NET Search Result Screenshot

Install .NET using winget

You can install .NET SDK or Runtime (.NET Runtime/.NET Desktop Runtime/ASP.NET Core Runtime) using following winget command:

winget install <package-id>

For example, this is how you install the .NET 6 SDK:

winget install Microsoft.DotNet.SDK.6

.NET Install Screenshot

Alternatively, you can also install the same package using it’s short name as follows:

winget install dotnet-sdk-6 

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:

winget install Microsoft.DotNet.SDK.Preview

To specify the architecture (x86, x64, and Arm64), use the following command:

winget install --architecture x64 Microsoft.DotNet.SDK.6

Uninstall .NET using winget

winget uninstall Microsoft.DotNet.SDK.6

.NET Uninstall Screenshot

Update .NET using winget

Use the following command to check if a .NET update is available for the installed version(s) of .NET.

winget upgrade

Update to new version of .NET using winget install command. Refer to section “Install .NET using winget” 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 “–architecture” option to update a specific one.


Discussion is closed. Login to edit/delete existing comments.

  • Tony Henrique 1

    That is awesome!
    .NET is very easy to install using winget.

  • Laurent Kempé 0

    It is super nice!
    I am confused because I have used it for quite some time, so I am not sure, what is new about it?


    • Ashita NagarMicrosoft employee 3

      Rightly asked, .NET official packages were published to the Windows package manager in May 2022. This post is for the same so that all our .NET customers get informed of the availability, benefits, and usage.

  • Weihan Li 0

    Awesome, wondering that is there a command to install the latest .net SDK without knowing the latest .NET version for example winget install dotnet-sdk

    • Ashita NagarMicrosoft employee 0

      You do need to specify the major version.

Feedback usabilla icon