SharedMauiCoreLibrary.Licensing
1.2.0-preview1
See the version list below for details.
dotnet add package SharedMauiCoreLibrary.Licensing --version 1.2.0-preview1
NuGet\Install-Package SharedMauiCoreLibrary.Licensing -Version 1.2.0-preview1
<PackageReference Include="SharedMauiCoreLibrary.Licensing" Version="1.2.0-preview1" />
<PackageVersion Include="SharedMauiCoreLibrary.Licensing" Version="1.2.0-preview1" />
<PackageReference Include="SharedMauiCoreLibrary.Licensing" />
paket add SharedMauiCoreLibrary.Licensing --version 1.2.0-preview1
#r "nuget: SharedMauiCoreLibrary.Licensing, 1.2.0-preview1"
#:package SharedMauiCoreLibrary.Licensing@1.2.0-preview1
#addin nuget:?package=SharedMauiCoreLibrary.Licensing&version=1.2.0-preview1&prerelease
#tool nuget:?package=SharedMauiCoreLibrary.Licensing&version=1.2.0-preview1&prerelease
SharedMauiCoreLibrary.Licensing
A shared library, which enables licensing of your .NET MAUI applications.
Dependencies
This extension needs a WooCommerce powered store and the WP Software License Plugin (https://wpsoftwarelicense.com/)
Documentation
Learn more here: https://andreas-reitberger.de/en/docs/programmieren/net-maui-basis-applikation-app-template/lizenz-manager/
Nuget
Get the latest version from nuget.org<br>
Available content
Please find a list of available content below.
Usage
Namespace
xmlns:behaviors="clr-namespace:AndreasReitberger.Shared.Core.Licensing;assembly=SharedMauiCoreLibrary.Licensing"
using AndreasReitberger.Shared.Core.Licensing
LicenseManager
In order to use LicenseManager, create a new Instance like shown below. .
string licenseUri = "andreas-reitberger.de";
LicenseManager manager;
//....
manager = new LicenseManager.LicenseManagerConnectionBuilder()
.WithLicenseServer(serverAddress: licenseUri, port: null, https: true)
.Build();
For the licenseUri use the base WordPress store address without https:\\ (like shown above).
LicenseInfo
The next step is to create a ILicenseInfo with the details of your product created in your WooCommerece store.
info = new LicenseInfo.LicenseInfoBuilder()
.WithLicense("The license key you want to check")
.WithOptions(new LicenseOptions()
{
ProductName = "Name of your product",
ProductIdentifier = "Your unique ProductId",
LicenseCheckPattern = "^AR-((\\w{8})-){2}(\\w{8})$",
})
.Build();
Endpoints
If all is setup, you can perform following methods depending on your needs. All will return an ILicenseQueryResult object.
ILicenseQueryResult result = await manager.CheckLicenseAsync(license: info, LicenseServerTarget.WooCommerce);
Assert.IsTrue(result?.Success == true);
result = await manager.DeactivateLicenseAsync(license: info, LicenseServerTarget.WooCommerce);
Assert.IsTrue(result?.Success == true);
result = await manager.CheckLicenseAsync(license: info, LicenseServerTarget.WooCommerce);
Assert.IsTrue(result?.Success == false);
result = await manager.ActivateLicenseAsync(license: info, LicenseServerTarget.WooCommerce);
Assert.IsTrue(result?.Success == true);
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net10.0 is compatible. net10.0-android was computed. net10.0-android36.0 is compatible. net10.0-browser was computed. net10.0-ios was computed. net10.0-ios26.0 is compatible. net10.0-maccatalyst was computed. net10.0-maccatalyst26.0 is compatible. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. net10.0-windows10.0.19041 is compatible. |
-
net10.0
- CommunityToolkit.Mvvm (>= 8.4.0)
- Microsoft.Maui.Controls (>= 10.0.10)
- Newtonsoft.Json (>= 13.0.4)
- RestSharp (>= 112.1.0)
-
net10.0-android36.0
- CommunityToolkit.Mvvm (>= 8.4.0)
- Microsoft.Maui.Controls (>= 10.0.10)
- Newtonsoft.Json (>= 13.0.4)
- RestSharp (>= 112.1.0)
-
net10.0-ios26.0
- CommunityToolkit.Mvvm (>= 8.4.0)
- Microsoft.Maui.Controls (>= 10.0.10)
- Newtonsoft.Json (>= 13.0.4)
- RestSharp (>= 112.1.0)
-
net10.0-maccatalyst26.0
- CommunityToolkit.Mvvm (>= 8.4.0)
- Microsoft.Maui.Controls (>= 10.0.10)
- Newtonsoft.Json (>= 13.0.4)
- RestSharp (>= 112.1.0)
-
net10.0-windows10.0.19041
- CommunityToolkit.Mvvm (>= 8.4.0)
- Microsoft.Maui.Controls (>= 10.0.10)
- Newtonsoft.Json (>= 13.0.4)
- RestSharp (>= 112.1.0)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 1.2.2.1 | 715 | 12/3/2025 |
| 1.2.1 | 485 | 12/1/2025 |
| 1.2.0 | 174 | 11/27/2025 |
| 1.2.0-preview1 | 354 | 11/21/2025 |
| 1.1.20 | 273 | 11/12/2025 |
| 1.1.19 | 239 | 10/27/2025 |
| 1.1.18 | 435 | 9/16/2025 |
| 1.1.17 | 207 | 7/7/2025 |
| 1.1.16 | 362 | 6/12/2025 |
| 1.1.15 | 310 | 4/22/2025 |
| 1.1.14 | 210 | 3/16/2025 |
| 1.1.14-preview2 | 163 | 2/18/2025 |
| 1.1.14-preview1 | 136 | 12/19/2024 |
| 1.1.13 | 337 | 10/21/2024 |
| 1.1.12 | 228 | 9/20/2024 |
| 1.1.11 | 179 | 9/10/2024 |
| 1.1.10 | 200 | 8/10/2024 |
| 1.1.9 | 215 | 6/14/2024 |
| 1.1.8 | 190 | 5/10/2024 |
| 1.1.7 | 216 | 4/11/2024 |
| 1.1.5 | 214 | 3/27/2024 |
| 1.1.4 | 216 | 3/20/2024 |
| 1.1.3 | 190 | 3/19/2024 |
| 1.1.2 | 220 | 2/12/2024 |
| 1.1.1 | 269 | 12/6/2023 |
| 1.1.0 | 227 | 11/14/2023 |
| 1.0.16 | 209 | 9/16/2023 |
| 1.0.15 | 235 | 8/9/2023 |
| 1.0.14 | 257 | 7/22/2023 |
Check GitHub releases for changelog.