Clever-Vpn-Windows-Kit
2.1.1
dotnet add package Clever-Vpn-Windows-Kit --version 2.1.1
NuGet\Install-Package Clever-Vpn-Windows-Kit -Version 2.1.1
<PackageReference Include="Clever-Vpn-Windows-Kit" Version="2.1.1" />
<PackageVersion Include="Clever-Vpn-Windows-Kit" Version="2.1.1" />
<PackageReference Include="Clever-Vpn-Windows-Kit" />
paket add Clever-Vpn-Windows-Kit --version 2.1.1
#r "nuget: Clever-Vpn-Windows-Kit, 2.1.1"
#:package Clever-Vpn-Windows-Kit@2.1.1
#addin nuget:?package=Clever-Vpn-Windows-Kit&version=2.1.1
#tool nuget:?package=Clever-Vpn-Windows-Kit&version=2.1.1
Clever-Vpn-Windows-Kit
Clever-Vpn-Windows-Kit is a .NET 8 core library designed for building Windows VPN client applications based on the CleverVPN platform. It abstracts the low‑level VPN implementation details, allowing developers to quickly build fully functional VPN clients without worrying about protocol‑level logic.
Features
- 🌐 Simplified API: Connect to VPN backend with just a few lines of code.
- 🛡️ Secure and Reliable: Built on CleverVPN stack with built‑in authentication, encryption, and reconnection support.
- 💼 Business Friendly: Supports private deployment and enterprise customization.
- 🪟 WinUI 3 Ready: Compatible with WinUI 3, WPF, and Console apps.
- ⚙️ Unpackaged & Packaged: Supports both traditional EXE and MSIX deployment models.
Installation
dotnet add package Clever-Vpn-Windows-Kit
Getting Started
Line Icons
The library ships built-in SVG assets for line icons and country flags. Frontend applications do not need to prepare these files separately.
Asset layout in the package/output directory:
Assets/line_icons/services/*.svgfor service iconsAssets/line_icons/countries/*.svgfor country flag icons keyed by ISO 3166-1 alpha-2 codeAssets/line_icons/services/default.svgas the fallback icon
Resolution rules:
- When
line.IconKind == "service",line.Iconis treated as a service icon file name. - Otherwise,
line.Iconis treated as a two-letter country code. - Invalid or empty values fall back to
default.svg.
Example:
var lines = await client.GetLines();
var firstLine = lines.Count > 0 ? lines[0] : null;
var iconPath = client.GetLineIconPath(firstLine);
var iconType = client.GetLineIconType(firstLine);
The returned path is a relative path such as:
Assets/line_icons/services/streaming.svgAssets/line_icons/countries/us.svg
Compatibility
- Windows 10 1809 and later (supports unpackaged mode)
- Windows App SDK 1.7+
- .NET 8 / C# 12
License
This project is licensed under the MIT License.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net8.0 is compatible. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 was computed. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 was computed. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
-
net8.0
- Microsoft.Extensions.Hosting.WindowsServices (>= 9.0.5)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.