Install Microsoft .NET with Windows Package Manager winget

0

Windows administrators can use the Windows Package Manager winget to install supported Microsoft .NET applications.

Microsoft released Windows Package Manager 1.0 in 2021, opening it up for use on production machines. The command line tool can be used to install and uninstall software on Windows and to update it.

Point: See our guide on running Windows Package Manager to update all installed Windows programs at once.

Windows users who prefer the graphical user interface can take a look at Winstall or WingetUI, which offer this.

.NET now on Windows Package Manager

Administrators can use winget to install .NET offerings without having to worry about dependencies or configurations. Windows Package Manager currently supports the following versions:

  • Microsoft .NET runtimes (3.1, 5.0, 6.0, 7.0 (preview))
  • Microsoft .NET SDK (3.1, 5.0, 6.0, 7.0 (preview))
  • Microsoft .NET Framework 4.8
  • Microsoft .NET Core SDK Uninstaller Tool

Winget comes with recent versions of Windows and Windows 11, but it is also available on GitHub and Microsoft Store.

Open a command prompt window and run the following command to check available .NET packages:

Microsoft.DotNet winget search

Running the command displays the available packages. Each package is listed with its name and version. Installing a package works just like installing other software when using winget.

install winget

The package ID is listed as one of the values ​​when you run the search for available Microsoft.DotNet components. To give you an example: to install Microsoft .NET Runtime 3.1 on the device, you need to run the following command.

winget install Microsoft.DotNet.Runtime.3_1

Uninstalling a Microsoft .NET package is also easy.

winget uninstall

One of the best features of Winget is the ability to upgrade packages. this is also true for Microsoft .NET. Simply run winget upgrade to show all packages for which updates are available. The command below will update the specified component:

winget upgrade

As always, the handy winget upgrade -all command is available to update all software packages for which updates are available. It is recommended to check for available updates before running the -all command, as you may not want to update them all at this time.

Closing words

Although there are other methods to install .NET components on Windows, winget provides an easy option to install and update .NET components on Windows.

Now you: What versions of .Net do you have installed on your devices? (Going through desktop modifier)

Summary

Install Microsoft .NET with Windows Package Manager winget

Article name

Install Microsoft .NET with Windows Package Manager winget

The description

Windows administrators can use the Windows Package Manager winget to install supported Microsoft .NET applications.

Author

Martin Brinkman

Editor

Ghacks Technology News

Logo

Advertising

Share.

Comments are closed.