WGet.NET 4.0.0
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()andWinGet.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 givenWinGetSourceobjects 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 theWinGetSourceManagercan now also add multiple sources at once - The
GetInstalledSources(...)method of theWinGetSourceManagerwill now return the full information set of all sources - Added
IEquatable<T>implementation to the following classes:WinGetAdminSetting(PreviousWinGetAdminOption)
- Added
ICloneableimplementation to the following classes:WinGetPackageWinGetPinnedPackageWinGetSourceWinGetAdminSetting(PreviousWinGetAdminOption)
- Information in the
WinGetInfoclass (previousWinGetData) is now parsed to more complex data and no longer to just strings- Added the
WinGetLinkclass - Added the
WinGetDirectoryclass
- Added the
WinGetPackage- Added the
SamePackage(...)method to compare two packages - Added the
HasNoIdproperty - Added the
HasUpgradeproperty
- Added the
WinGetSource- Added the
Uriproperty
- Added the
Other
- Improvements to the XML Documentation of the code
- Overhaul of the library documentation (https://basicx-strgv.github.io/WGet.NET/)
- Added an icon to the package
Known Issues
- Packages with a longer name or id might not be processed correctly #4