Description
Metalama is an open-source patterns and architecture toolkit for C#, built on Roslyn, the .NET compiler platform. It lets you write aspects that generate code for design patterns at compile time, so repeated boilerplate such as logging, caching or validation does not have to be written by hand. Architecture rules can be checked while you type in Visual Studio, so rules that a team agrees on are enforced rather than left to reviews. The site shows an example flow with three steps: create an aspect, apply it to business code, and see the generated result. Metalama is developed by PostSharp, which also sells the older PostSharp framework. The Metalama Open Source edition is MIT-licensed and free, and only the latest YYYY.N version is maintained under that license. The Community edition adds closed-source Visual Studio tooling for individuals and small teams, and commercial licenses are offered for larger companies.…
Highlights
- Compile-time design pattern generation
- Architecture rules checked as you type
- Aspects that apply to business code
- Visual Studio tooling in the Community edition
- MIT-licensed open source edition
Ratings & Reviews
No ratings yet
Be the first to rate Metalama.
People also visit

dotnet-patterns
Idiomatic C# and .NET patterns, conventions, dependency injection, async/await

csharp-developer
Building C# applications with .NET 8+, ASP.NET Core APIs, or Blazor web apps

dotnet-best-practices
Validate .NET/C# code against comprehensive best practices for your solution
Metalama FAQ
What is Metalama?
It is an open-source toolkit for C# that generates design pattern code at compile time and enforces architecture rules.
Is Metalama free?
The Open Source edition is free under the MIT license. The Community edition is also free for individuals, companies of up to 3 users, or non-commercial use.
How does it work?
You create an aspect, apply it to your business code, and Metalama generates the result at compile time.
Which versions are maintained?
Only the latest YYYY.N version is maintained under the MIT license. The site says you are never forced to update.
Does it need a commercial license?
Commercial licenses are offered for companies, with Business licenses as floating concurrent-user licenses and Personal licenses for individuals.
What are the best Metalama alternatives?
Popular alternatives to Metalama include SharpToolsMCP, Arrow Meta and Metals. See all Metalama alternatives






