Skip to content

WGet.NET 4.0.0

Choose a tag to compare

@basicx-StrgV basicx-StrgV released this 15 Jan 18:01
· 64 commits to main since this release

Changelog

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.

New Features

  • Added the WinGet.GetAdminSettings() and WinGet.GetAdminSettingsAsync() methods, that get the full list of admin settings
  • Added methods, that enable and disable winget admin settings
    • WinGet.EnableAdminSetting(...)
    • WinGet.EnableAdminSettingAsync(...)
    • WinGet.DisableAdminSetting(...)
    • WinGet.DisableAdminSettingAsync(...)
  • Added the WinGetPackage.Create(...) methods, that create a custom WinGetPackage object
  • Added the WinGetSource.Create(...) methods, that create a custom WinGetSource object
  • Added the WinGetSourceManager.SourcesToJson(...) method, that will convert given WinGetSource objects to a valid json string
  • Added the WinGetSourceManager.ImportSourcesFromJson(...) method, that will import multiple sources from a json string into winget
  • The AddSource(...) method of the WinGetSourceManager can now also add multiple sources at once
  • The GetInstalledSources(...) method of the WinGetSourceManager will now return the full information set of all sources
  • Added IEquatable<T> implementation to the following classes:
    • WinGetAdminSetting (PreviousWinGetAdminOption)
  • Added ICloneable implementation to the following classes:
    • WinGetPackage
    • WinGetPinnedPackage
    • WinGetSource
    • WinGetAdminSetting (PreviousWinGetAdminOption)
  • Information in the WinGetInfo class (previous WinGetData) is now parsed to more complex data and no longer to just strings
    • Added the WinGetLink class
    • Added the WinGetDirectory class
  • WinGetPackage
    • Added the SamePackage(...) method to compare two packages
    • Added the HasNoId property
    • Added the HasUpgrade property
  • WinGetSource
    • Added the Uri property

Other

Known Issues

  • Packages with a longer name or id might not be processed correctly #4

Package

https://www.nuget.org/packages/WGet.NET/