The .NET Licensing Audit: What Went Commercial and What to Use Instead
Your .NET stack is open source. Your ecosystem might not be. Here’s what a licensing audit actually uncovers — and the free alternatives you should know about.
Welcome to the .NET licensing audit — the rite of passage no developer asks for but many eventually face.
The irony is thick. Microsoft spent years rebuilding .NET as a fully open-source, MIT-licensed platform. The runtime is free. The SDK is free. ASP.NET Core, EF Core, and the entire BCL are free. And yet, when you peel back the layers of a real-world enterprise .NET application, you often find a tangled web of commercial dependencies hiding in plain sight.
This article breaks down what actually went commercial in the .NET ecosystem, why it catches teams off guard, and — most importantly — what you can use instead.
The Great Misconception: “.NET Is Free, So Everything Is Free”
Let’s get the obvious out of the way. .NET itself is free. The .NET runtime, SDK, and most of the foundational libraries are licensed under MIT. You can build, deploy, and scale .NET applications without paying Microsoft a cent. This is not the Java licensing saga. This is not the Oracle trap.
But here’s where the misconception lives: the .NET ecosystem is not a monolith. It’s a sprawling landscape of independent vendors, open-source maintainers, and commercial tool makers. And when your application ships to production, your licensing obligations extend to every dependency in your packages.lock.json — not just the runtime.
A licensing audit doesn’t care that Microsoft.AspNetCore is MIT. It cares about that one DevExpress grid control your intern pulled in three years ago. It cares about the AOP framework that quietly switched to a paid model. It cares about the mocking library that tried to phone home to a sponsorship server.
What Actually Went Commercial (or Always Was)
1. The Moq SponsorLink Debacle (2023)
If there’s a single event that put .NET licensing on the radar of engineering managers everywhere, it’s the Moq controversy.
Moq had been the go-to mocking framework for .NET for over a decade. Open source, widely trusted, embedded in thousands of CI pipelines. Then, in version 4.20, maintainer Daniel Cazzulino introduced SponsorLink — a mechanism that collected anonymized developer email hashes and sent them to a remote server to verify GitHub sponsorship status.
The backlash was immediate and nuclear. The package was pulled from projects within hours. Security teams flagged it as a supply-chain risk. And while SponsorLink was eventually removed, the damage was done: a package you assumed was free had quietly introduced a commercial gate.
The lesson: Open source doesn’t mean “no strings attached.” Maintainers need to eat, and some will experiment with monetization in ways that surprise you.
2. UI Component Suites: DevExpress, Telerik, Syncfusion, Infragistics
These have always been commercial, but they deserve mention because they’re the #1 source of licensing audit findings in .NET shops.
A developer evaluates a trial version of DevExpress. They love the grid. They build half the internal dashboard around it. The trial expires. Someone copies the DLLs. Six months later, an audit discovers unlicensed commercial controls in a production application.
- DevExpress: Starts around $1,500/developer/year
- Telerik UI: ~$1,300/developer/year
- Infragistics: ~$1,300/developer/year
- Syncfusion: ~$995/developer/year (but has a generous Community License for small companies)
These aren’t “gotchas” — they’re clearly commercial products. The problem is organizational: developers pull in trial packages without procurement knowing.
3. PostSharp and the AOP Trap
PostSharp is the canonical example of a .NET library that started free and went commercial. Originally an open-source aspect-oriented programming framework, PostSharp transitioned to a paid model years ago. Many legacy codebases still reference older free versions, but upgrading — or even continuing to use certain features — requires a license starting at ~$800/developer.
If your build pipeline still runs PostSharp.Weaver, it’s time to look at the license terms.
4. Profiling and Diagnostics Tools
The .NET profiling space is heavily commercial:
These tools are incredible, but they show up in audits because teams install them on developer machines and forget they’re not covered by a site license.
5. Static Analysis and Code Quality
- NDepend: ~$499/developer. Powerful but commercial.
- SonarQube: The Developer Edition and above are paid. The Community Edition is free but limited.
- ReSharper: ~$349/developer. Many teams use it without realizing it’s not covered by their Visual Studio license.
6. Database Providers for EF Core
EF Core itself is free. But some database providers are not:
- Devart dotConnect (Oracle, MySQL, PostgreSQL): Commercial, ~$300+/developer
- Npgsql (PostgreSQL): Free and open source
- Pomelo (MySQL): Free and open source
- Microsoft.Data.SqlClient: Free
- Oracle.EntityFrameworkCore: Free (Oracle’s official provider)
The trap here is subtle. A team might start with a commercial provider during evaluation and never switch.
7. The NuGet Gray Zone
Beyond the big names, there’s a long tail of NuGet packages with ambiguous licensing:
- Packages with no license specified (which legally means “all rights reserved”)
- Packages using dual licensing (free for open source, paid for commercial use)
- Packages that switched from permissive to restrictive licenses between versions
- Packages with source-available licenses that look open but restrict commercial use
Tools like NuGet Package Explorer and ClearlyDefined.io can help, but most teams never check.
What to Use Instead: The Free Alternatives Cheat Sheet
Here’s the practical part. For every commercial tool that shows up in an audit, there’s usually a capable free alternative.
UI Components
Mocking and Testing
Profiling and Diagnostics
Static Analysis and Code Quality
AOP and Cross-Cutting Concerns
Logging and Observability
Database and ORM
How to Protect Yourself Going Forward
1. Automate License Checking in CI/CD
Add a license audit step to your pipeline. Tools like:
- dotnet-project-licenses (
dotnet tool install -g dotnet-project-licenses) - LicenseFinder (Pivotal)
- FOSSA or Snyk (commercial, but free tiers exist)
Fail the build if a non-approved license is detected.
2. Maintain an Approved Package List
Create a living document (or a Directory.Packages.props with central package management) that lists approved NuGet packages and their licenses. Review it quarterly.
3. Use Central Package Management
.NET 6+ supports Central Package Management (<ManagePackageVersionsCentrally>true</ManagePackageVersionsCentrally>). This gives you a single file to audit instead of dozens of .csproj files.
4. Read the License Before You dotnet add package
I know. Nobody wants to read licenses. But a 30-second check on nuget.org or choosealicense.com can save your company $50,000 in audit penalties.
5. Pin Your Versions
A package that’s MIT today might introduce a commercial tier tomorrow (see: Moq). Pin your versions and evaluate upgrades deliberately.
6. Educate Your Team
Most licensing violations are accidental. A developer doesn’t know that the “free trial” NuGet package they installed six months ago is now running in production without a license. Make licensing part of your onboarding and code review process.
The Bottom Line
The .NET platform itself is one of the most genuinely open-source ecosystems in enterprise software. Microsoft has done remarkable work making the runtime, SDK, and core libraries free under permissive licenses.
But your application is not just the runtime. It’s the 200 NuGet packages in your dependency graph. It’s the UI controls, the profilers, the mocking frameworks, the AOP weavers, and the database providers. And somewhere in that graph, there’s probably something that requires a commercial license you don’t have.
The good news? For almost every commercial .NET tool, there’s a free, open-source alternative that’s good enough — and often better because it’s community-driven and transparent.
Don’t wait for the audit. Run dotnet-project-licenses on your solution today. You might be surprised by what you find.
Have you been through a .NET licensing audit? What commercial dependencies caught you off guard? Drop your war stories in the comments — let’s build a collective knowledge base so the next team doesn’t get blindsided.

