You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+28-12Lines changed: 28 additions & 12 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -7,20 +7,34 @@
7
7
8
8
## ❓ What is WGet.NET
9
9
10
-
WGet.NET is a WinGet wrapper library for .Net.
10
+
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.
I created it for another project and then made a library out of it in hope it might be useful to someone else too.
15
-
**If you tried this library, please give me some feedback. And if you miss a feature, you can create an issue to let me know.**
14
+
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.
15
+
16
+
**If you miss a feature or find a problem with the library, feel free to create an [issue](https://github.com/basicx-StrgV/WGet.NET/issues).**
17
+
18
+
## ✨ Version 4.0
19
+
20
+
Version 4.0 is intended as a “health” update for the library and therefore includes changes to the structure, classes and functions.
21
+
This includes breaking changes to the usage of the library.
22
+
23
+
***But fear not, no functionality is lost and all breaking changes are documented and provide information on how to change the implementation.***
24
+
25
+
You can find the full migration documentation [here](https://github.com/basicx-StrgV/WGet.NET/blob/develop/migration_info/V3-V4.md).
26
+
27
+
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.
28
+
29
+
***More information about version 4.0 can be found [here](https://github.com/basicx-StrgV/WGet.NET/releases/tag/4.0.0).***
16
30
17
31
## 📓 Documentation
18
32
19
33
https://basicx-strgv.github.io/WGet.NET/
20
34
21
35
## ⚡ Features
22
36
23
-
**Supported Frameworks:** .Net Core 3.1, .Net Standard 2.0
@@ -60,16 +74,18 @@ If WinGet is not installed on your system you can get it here: https://github.co
60
74
## 💡 Getting started
61
75
62
76
The needed namespace is **WGetNET** (`using WGetNET;`).
63
-
This namespace contains the three main classes that are used to perform actions or get information with winget, plus all additional classes that are needed.
77
+
This namespace contains the three main classes that are used to perform actions or get information with winget, plus additional classes that are needed.
78
+
79
+
Exceptions are located in the `WGetNET.Exceptions` namespace.
64
80
65
81
### WinGetInfo:
66
-
The ***WinGetInfo*** class can be used to get information about WinGet itself.
82
+
The ***WinGet*** class can be used to get information about WinGet itself.
67
83
This class is inherited by the ***WinGetPackageManager*** and ***WinGetSourceManager*** class.
68
84
69
-
USing this class to check if winget is installed could look like this:
85
+
Using this class to check if winget is installed could look like this:
70
86
```csharp
71
-
WinGetInfowingetInfo=newWinGetInfo();
72
-
if (wingetInfo.WinGetInstalled)
87
+
WinGetwinget=newWinGet();
88
+
if (winget.IsInstalled)
73
89
{
74
90
Console.WriteLine("WinGet is installed.");
75
91
}
@@ -113,8 +129,8 @@ WinGetPackageManager packageManager = new WinGetPackageManager();
if (package.AvailableVersionObject>package.VersionObject)
132
+
if (package.AvailableVersion>package.Version)
117
133
{
118
-
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.VersionObject, package.AvailableVersionObject, packageId);
134
+
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);
<p><b>WGet.Net</b> was created and is maintained by <b>basic-StrgV</b>.</p>
15
+
<p>Thanks to all <ahref="https://github.com/basicx-StrgV/WGet.NET/graphs/contributors">contributors</a> and people that opened issues, for helping in improving the library.</p>
<p>The documentation was generated with the help of <ahref="https://www.doxygen.nl/">Doxygen</a>.</p>
28
+
<p>
29
+
The base style, dark/light mode toggling and other UI improvements are done with <ahref="https://github.com/jothepro/doxygen-awesome-css">doxygen-awesome-css</a>.
30
+
<br>
31
+
There are additional custom styles and scripts, and the <b>doxygen-awesome-darkmode-toggle.js</b> script was modified for this project.
32
+
</p>
33
+
<p>
34
+
Custom html pages, like this "<i>About</i>" page, are done with the
35
+
<ahref="https://github.com/basicx-StrgV/doxygen-custom-page-injector">doxygen-custom-page-injector</a>, which was initially created for this project.
0 commit comments