Roslyn-Based, Open-Source Code Generation & Verification.
- Reduce code and bugs by 15%. Let the machine handle repetitive tasks, freeing engineers to focus on meaningful work.
- Maintain clean and readable code. Simplify your codebase for better maintainability and collaboration.
- Enforce architectural consistency. Define validation rules in C# and receive instant feedback directly in your IDE.
Open-source
- MIT-licensed: A well-known, permissive license that gives you full freedom to use, modify, and distribute the software without legal friction.
- Vendor-led, strategically backed: Metalama is developed and maintained by PostSharp Technologies, ensuring strong direction, stable governance, and enterprise-grade quality.
- From industry veterans: Created by the makers of PostSharp, drawing on over 20 years of experience in .NET compiler extensibility and meta-programming.
- Sustainable by design: Funded by commercial success, not donations. Premium and enterprise features support the long-term health of the open-source edition.
- More than just a core: The open-source edition includes most of the framework — it’s fully functional and ready for production use.
Built for Modern .NET
- Designed for C# and .NET 6+: Built specifically for today’s .NET stack, with first-class support for modern language features.
- Fits your workflow: Integrates cleanly with Roslyn, MSBuild, and your existing CI toolchain — no friction, no hacks.
- Compatible: Works with any target framework that supports .NET Standard 2.0, including .NET Framework 4.7.2.
- Immediate IDE feedback: Uses source generators for real-time warnings and IntelliSense support. No need to rebuild.
Power Tools
Visual Studio Tools for Metalama
For teams that need more productivity, Metalama offers optional IDE tooling:
- Aspect Diff: see exactly what Metalama generates.
- Code Lens: see which aspects are applied to your code.
- Aspect Explorer: navigate from aspects to their targets.
- Syntax Highlighting
Free for individuals, open-source, non-commercial use, or small teams!
- Could-based caching: Add support for Redis and Azure Message Bus to
Metalama.Patterns.Caching
.
Enterprise Support
PostSharp Technologies offers professional-grade support for teams relying on Metalama for critical projects:
- Guaranteed response times depending on your subscription tier.
- Long-term support (LTS) builds for stability across product cycles.
- Direct access to the core team for guidance, code reviews, and architecture feedback.
- Compliance-ready support for security, audits, and vendor onboarding.
- Private channels and remote debugging for high-priority collaboration.
No Vendor Lock-in
We designed Metalama to put your team in control — now and in the future:
- Fully featured and open: The open-source edition isn’t a teaser — it includes most of what Metalama has to offer and can stand entirely on its own.
- Source access for premium features: Enterprise customers get full source access to premium packages.
- "Divorce" option: You can export the generated code into your project and remove the Metalama dependency at any time — no strings attached.