Install Microsoft .NET with the Windows Package Manager winget
#1
Information 
Quote:Windows administrators may use the Windows Package Manager winget to install supported Microsoft .NET applications.

[Image: winget-net-install.png]

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

Tip: Check out our guide on running Windows Package Manager to update all installed Windows programs at once.

Windows users who prefer graphical user interface may take a look at Winstall or WingetUI, which offer that.

.NET now on Windows Package ManagerAdministrators may use winget to install .NET offerings without having to worry about dependencies or configurations. The Windows Package Manager supports the following versions currently:
  • Microsoft .NET runtimes (3.1, 5.0, 6.0, 7.0 (Preview))
  • Microsoft .NET SDKs (3.1, 5.0, 6.0, 7.0 (Preview))
  • Microsoft .NET Framework 4.8
  • Microsoft .NET Core SDK Uninstall Tool
Winget is bundled with recent versions of Windows and Windows 11, but it is also available on GitHub and the Microsoft Store.

Open a command prompt window and run the following command to check the available .NET packages:
 
Quote:winget search Microsoft.DotNet

Running the command displays the available packages.  Each package is listed with its name and version. Installation of a package works exactly as the installation of other software when using winget.
 
Quote:winget install <package-id>

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 the Microsoft .NET Runtime 3.1 on the device, you'd run the following command.
 
Quote:winget install Microsoft.DotNet.Runtime.3_1

Uninstallation of a Microsoft .NET package is straightforward as well.
 
Quote:winget uninstall <package-id>

One of winget's best features is the ability to upgrade packages; this is true for Microsoft .NET also. Just run winget upgrade to display all packages for which updates are available.  The command below will update the specified component:
 
Quote:winget upgrade <package-id>

As always, the handy winget upgrade -all command is available to update all software packages for which updates are available. Checking the available updates before running the -all command is recommended, as you may not want all of them to be updated at the moment in time.

Closing Words

While there are other methods to install .NET components on Windows, winget is offering a straightforward option to install and update .NET components on Windows.

Now You: which .Net versions do you have installed on your devices?
...
Continue Reading
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)
[-]
Welcome
You have to register before you can post on our site.

Username/Email:


Password:





[-]
Recent Posts
Kaspersky\VPN\KSOS 21.23 & KES 12.11 bet...
harlan4096 — 08:55
ESET 18.2.18
A quick hotfix for...harlan4096 — 08:53
AdGuard Browser Extension 5.1.145 (MV3 s...
AdGuard Browser Ex...harlan4096 — 08:50
Brave 1.82.166
Release Channel 1....harlan4096 — 08:49
NVIDIA GeForce Game Ready 581.29 driver
Highlights  Gam...harlan4096 — 08:48

[-]
Birthdays
Today's Birthdays
No birthdays today.
Upcoming Birthdays
avatar (38)fapedDow
avatar (48)pohudidere
avatar (48)rarinsWax
avatar (25)DianaBrown
avatar (38)eqiduseb
avatar (45)ThomasLYDAY
avatar (40)upakoExapy
avatar (50)diplomasync
avatar (49)Myronjax
avatar (49)skepwHug
avatar (38)RicardoGoase
avatar (42)Edwardgef
avatar (43)Denpokhew
avatar (35)azidony
avatar (40)maskbSleew

[-]
Online Staff
There are no staff members currently online.

>