Software licensing for C# and .NET desktop applications.
Install official NuGet clients with built-in SL-HWID binding, pull protected config and assets straight into RAM, and avoid the traps that make C# apps easy to crack.
C# is one of the fastest ways to ship Windows desktop software with WPF, WinForms, Avalonia, or console utilities. Its biggest licensing weakness is well known: plain managed IL decompiles cleanly into readable C#, so a local boolean check around bundled logic takes minutes to bypass. System Locker pairs official .NET 8+ NuGet packages with server-gated delivery so your licensing holds up in practice.
Fragile pattern
Local boolean gate
App checks key, gets a denial, attacker patches one IL or NativeAOT jump, and bundled secrets or modules unlock immediately.
Recommended pattern
Server-capability delivery
Bedrock verifies the license, returns Server-Side Variables and a download token, and your app pulls payloads straight into memory via Invisible Folder.
Official .NET NuGet packages
| NuGet package | Auth model | Best fit |
|---|---|---|
| SystemLocker.Bedrock | Cryptographically verified online sessions + rotating heartbeats | Connected WPF, WinForms, Avalonia, and console apps using SL-HWID, variables, and Invisible Folder |
| SystemLocker.Nightflyer | Signed offline leases (20 min to 90 days) with DPAPI + CNG persistence | Offline desktop utilities and .NET software used without constant internet access |
| SystemLocker.Simple | Direct server-side check | ASP.NET Core backends, internal tools, and hosted services you control |
Keep paid data out of your compiled assembly
Even when you compile a C# binary to native machine code with .NET NativeAOT and obfuscate it with Rampart, a single local branch protecting an embedded secret can still be patched. We proved that in We cracked our own protected binary using a NativeAOT C# test app.
With SystemLocker.Bedrock, you can keep runtime endpoints and configuration in Server-Side Variables and fetch paid files or data straight into a byte[] buffer via Invisible Folder without writing temporary copies to disk. Follow our Windows C# walkthrough for the complete working code.
Built-in SL-HWID and painless operations
SystemLocker.Bedrock turns on SL-HWID by default so routine customer hardware changes do not trigger lockouts. Pair your .NET client with checkout webhooks for Stripe, Novinzo, Gumroad, SellAuth, and custom storefronts to deliver keys, extend renewals, and handle refunds automatically. You can also add reseller portals when partners sell keys and Aegis to catch shared accounts. Building in Unity with C#? See our dedicated Unity game licensing guide.
Common questions
Are the .NET clients published on NuGet?
Yes. Official packages for .NET 8+ are published on NuGet as SystemLocker.Bedrock (online verified sessions), SystemLocker.Nightflyer (offline leases), and SystemLocker.Simple (trusted server-side checks). Source code for all three is also public on GitHub.
Does SystemLocker.Bedrock enable hardware locking automatically?
Yes. SystemLocker.Bedrock enables fault-tolerant SL-HWID hardware binding by default starting in version 1.0.0. You can also pass a custom HWID if you prefer, or intentionally disable device locking when your product does not need it.
Can I use Rampart on a standard C# .NET executable?
Rampart targets native Windows x64 executables, including C# projects compiled with .NET NativeAOT. It does not protect standard managed IL assemblies. Even with NativeAOT and Rampart, keep sensitive data off the binary by loading Server-Side Variables and Invisible Folder payloads after authentication.
How does Nightflyer store offline leases in a .NET app?
On Windows, SystemLocker.Nightflyer protects persistent lease state with per-user DPAPI and signs it with a separately stored, non-exportable CNG installation key. On macOS and Linux, you supply an INightflyerStateStore backed by Keychain or Secret Service.
Protect your C# app with one NuGet package.
Read the step-by-step Windows C# guide or grab SystemLocker.Bedrock on NuGet and test it with a free developer account.