GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Skip To Content
  • Packages
  • Upload
  • Statistics
  • Documentation
  • Downloads
  • Blog
  • Sign in

This view

  • Original page
  • New address

GeezerVison is showing www.nuget.org — WGet.NET 4.4.1



WGet.NET 4.4.1

.NET Core 3.1 This package targets .NET Core 3.1. The package is compatible with this framework or higher. .NET Standard 2.0 This package targets .NET Standard 2.0. The package is compatible with this framework or higher.
  • .NET CLI
  • PMC
  • PackageReference
  • CPM
  • Paket CLI
  • Script & Interactive
  • File-Based Apps
  • Cake
dotnet add package WGet.NET --version 4.4.1
                    
NuGet\Install-Package WGet.NET -Version 4.4.1
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="WGet.NET" Version="4.4.1" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="WGet.NET" Version="4.4.1" />
                    
Directory.Packages.props
<PackageReference Include="WGet.NET" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add WGet.NET --version 4.4.1
                    
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: WGet.NET, 4.4.1"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package [email protected]
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=WGet.NET&version=4.4.1
                    
Install as a Cake Addin
#tool nuget:?package=WGet.NET&version=4.4.1
                    
Install as a Cake Tool
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
  • README
  • Frameworks
  • Dependencies
  • Used By
  • Versions
  • Release Notes

WGet.NET

Version NuGet License Issues

❓ What is WGet.NET

WGet.NET is a WinGet wrapper library for .Net that allows you to easily install, update, uninstall and more, with the help of WinGet, from your application.

WGet.NET Icon

I created it for another project and then made a library out of it in the hope it might be useful to someone else too.

If you miss a feature or find a problem with the library, feel free to create an issue.

✨ Version 4.0

Version 4.0 is intended as a “health” update for the library and therefore includes changes to the structure, classes and functions.
This includes breaking changes to the usage of the library.

But fear not, no functionality is lost and all breaking changes are documented and provide information on how to change the implementation.

You can find the full migration documentation here.

This was done to improve maintainability and the experience of using the library, by improving the data structure, removing redundant or useless functions and making the implementation more consistent.

More information about version 4.0 can be found here.

📓 Documentation

https://basicx-strgv.github.io/WGet.NET/

⚡ Features

Supported Framework Versions

  • WinGet
    • Get a list of installed packages
    • Search installed packages
    • Search packages
    • Install packages
    • Uninstall packages
    • Upgrade packages
    • Repair packages
    • Get a list of upgradeable packages
    • Export and Import packages
    • Check if WinGet is installed
    • Get the WinGet version number
    • Get installed sources
    • Add sources
    • Remove sources
    • Update sources
    • Export and Import sources
    • Reset sources
    • Calculate file hash
    • Export Settings
    • Download package installers
    • Manage pinned packages
    • Access info of the WinGet installation
  • Other
    • Asynchronous Execution

📦 NuGet Package

You can get the NuGet package here: https://www.nuget.org/packages/WGet.NET/

❗ Requirements

WinGet needs to be installed on the system.

If WinGet is not installed on your system you can get it here: https://github.com/microsoft/winget-cli

💡 Getting started

The needed namespace is WGetNET (using WGetNET;).
This namespace contains the three main classes that are used to perform actions or get information with winget, plus additional classes that are needed.

Exceptions are located in the WGetNET.Exceptions namespace.

WinGetInfo:

The WinGet class can be used to get information about WinGet itself.
This class is inherited by the WinGetPackageManager and WinGetSourceManager class.

Using this class to check if winget is installed could look like this:

WinGet winget = new WinGet();
if (winget.IsInstalled)
{
     Console.WriteLine("WinGet is installed.");
}
else
{
     Console.WriteLine("WinGet is NOT installed.");
}

WinGetPackageManager:

The WinGetPackageManager class is used for everything that has to do with packages.
It can install, remove, upgrade, search, list, export and import packages.

The code for installing a package could look like this:

WinGetPackageManager packageManager = new WinGetPackageManager();
packageManager.InstallPackage("Git.Git");

WinGetSourceManager:

The WinGetSourceManager class is used for everything that has to do with sources.
It can list, add, update, export, reset and remove sources.

To use the add, remove and reset functions, the process needs to have administrator privileges.
(WinGet can’t perform these actions without administrator privileges)

The code for adding a source could look like this:

WinGetSourceManager sourceManager = new WinGetSourceManager();
sourceManager.AddSource("msstore", "https://storeedgefd.dsx.mp.microsoft.com/v9.0", "Microsoft.Rest");

Find Latest Versions of a Package:

Using the WinGetPackageManager class you can use the GetInstalledPackages capability to get the latest version of a package and then retrieve the version number from the AvailableVersionObject property.

You would then be able to compare this to the current version of the package (VersionObject property) and determine if you need to notify users of an available upgrade.

WinGetPackageManager packageManager = new WinGetPackageManager();
string packageId = "nkdAgility.AzureDevOpsMigrationTools";
WinGetPackage package = packageManager.GetInstalledPackages(packageId, true).FirstOrDefault();

if (package.AvailableVersion > package.Version)
{
    Console.WriteLine("You are currently running version {currentVersion} and a newer version ({latestVersion}) is available. You should update now using Winget command 'winget {packageId}' from the Windows Terminal.", package.Version, package.AvailableVersion, packageId);
}
Product Versions Compatible and additional computed target framework versions.
.NET net5.0 net5.0 was computed.  net5.0-windows net5.0-windows was computed.  net6.0 net6.0 was computed.  net6.0-android net6.0-android was computed.  net6.0-ios net6.0-ios was computed.  net6.0-maccatalyst net6.0-maccatalyst was computed.  net6.0-macos net6.0-macos was computed.  net6.0-tvos net6.0-tvos was computed.  net6.0-windows net6.0-windows was computed.  net7.0 net7.0 was computed.  net7.0-android net7.0-android was computed.  net7.0-ios net7.0-ios was computed.  net7.0-maccatalyst net7.0-maccatalyst was computed.  net7.0-macos net7.0-macos was computed.  net7.0-tvos net7.0-tvos was computed.  net7.0-windows net7.0-windows was computed.  net8.0 net8.0 was computed.  net8.0-android net8.0-android was computed.  net8.0-browser net8.0-browser was computed.  net8.0-ios net8.0-ios was computed.  net8.0-maccatalyst net8.0-maccatalyst was computed.  net8.0-macos net8.0-macos was computed.  net8.0-tvos net8.0-tvos was computed.  net8.0-windows net8.0-windows was computed.  net9.0 net9.0 was computed.  net9.0-android net9.0-android was computed.  net9.0-browser net9.0-browser was computed.  net9.0-ios net9.0-ios was computed.  net9.0-maccatalyst net9.0-maccatalyst was computed.  net9.0-macos net9.0-macos was computed.  net9.0-tvos net9.0-tvos was computed.  net9.0-windows net9.0-windows was computed.  net10.0 net10.0 was computed.  net10.0-android net10.0-android was computed.  net10.0-browser net10.0-browser was computed.  net10.0-ios net10.0-ios was computed.  net10.0-maccatalyst net10.0-maccatalyst was computed.  net10.0-macos net10.0-macos was computed.  net10.0-tvos net10.0-tvos was computed.  net10.0-windows net10.0-windows was computed. 
.NET Core netcoreapp2.0 netcoreapp2.0 was computed.  netcoreapp2.1 netcoreapp2.1 was computed.  netcoreapp2.2 netcoreapp2.2 was computed.  netcoreapp3.0 netcoreapp3.0 was computed.  netcoreapp3.1 netcoreapp3.1 is compatible. 
.NET Standard netstandard2.0 netstandard2.0 is compatible.  netstandard2.1 netstandard2.1 was computed. 
.NET Framework net461 net461 was computed.  net462 net462 was computed.  net463 net463 was computed.  net47 net47 was computed.  net471 net471 was computed.  net472 net472 was computed.  net48 net48 was computed.  net481 net481 was computed. 
MonoAndroid monoandroid monoandroid was computed. 
MonoMac monomac monomac was computed. 
MonoTouch monotouch monotouch was computed. 
Tizen tizen40 tizen40 was computed.  tizen60 tizen60 was computed. 
Xamarin.iOS xamarinios xamarinios was computed. 
Xamarin.Mac xamarinmac xamarinmac was computed. 
Xamarin.TVOS xamarintvos xamarintvos was computed. 
Xamarin.WatchOS xamarinwatchos xamarinwatchos was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • .NETCoreApp 3.1

    • System.Security.Principal.Windows (>= 5.0.0)
  • .NETStandard 2.0

    • Newtonsoft.Json (>= 13.0.3)
    • System.Security.Principal.Windows (>= 5.0.0)

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories (2)

Showing the top 2 popular GitHub repositories that depend on WGet.NET:

Repository Stars
nkdAgility/azure-devops-migration-tools
Azure DevOps Migration Tools allow you to migrate Teams, Backlogs, Work Items, Tasks, Test Cases, and Plans & Suits from one Project to another in Azure DevOps / TFS both within the same Organisation, and between Organisations.
608
yoshiask/FluentStore
A unifying frontend for Windows app stores and package managers
571
Include prerelease
Include vulnerable
Include deprecated
Version Downloads Last Updated
4.4.1 29,681 3/26/2025
4.4.0 374 3/23/2025
4.3.1 361 3/16/2025
4.3.0 252 3/15/2025
4.2.0 3,655 9/11/2024
4.1.1 617 8/27/2024
4.1.0 2,080 4/13/2024
4.0.1 1,746 1/17/2024
4.0.0 281 1/15/2024
3.2.0 895 11/4/2023 3.2.0 is deprecated because it is no longer maintained.
3.1.0 463 10/19/2023 3.1.0 is deprecated because it is no longer maintained.
3.0.0 430 10/17/2023 3.0.0 is deprecated because it is no longer maintained.
3.0.0-alpha2 338 10/13/2023 3.0.0-alpha2 is deprecated because it is no longer maintained.
3.0.0-alpha1 359 10/13/2023 3.0.0-alpha1 is deprecated because it is no longer maintained.
2.3.0 487 5/23/2023 2.3.0 is deprecated because it is no longer maintained.
2.2.0 386 5/8/2023 2.2.0 is deprecated because it is no longer maintained.
2.1.0 453 4/23/2023 2.1.0 is deprecated because it is no longer maintained.
2.0.3 379 4/22/2023 2.0.3 is deprecated because it is no longer maintained.
2.0.2 976 9/18/2022 2.0.2 is deprecated because it is no longer maintained.
2.0.1 732 6/14/2022 2.0.1 is deprecated because it is no longer maintained.
Loading failed

https://github.com/basicx-StrgV/WGet.NET/releases/tag/4.4.1

Downloads
Full stats →
Total 48.6K
Current version 29.7K
Per day average 30
About
  • Last updated 3/26/2025
  • Project website
  • Source repository
  • License Info
  • Download package  (386.33 KB)
  • Open in NuGet Package Explorer
  • Open in NuGet Trends
  • Report package
Owners
Contact owners →
  • basicx gravatar basicx

winget winget-cli dotnet dotnetcore dotnet-core dotnet-standard dotnet-framework library windows wrapper package-manager

basicx-StrgV

Use the Atom feed to subscribe to new versions of WGet.NET

You are visitor 01402520 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.