.NETStandard2.0
Metalama SDK. Lets you extend Metalama with the Roslyn API. Unlike source generators, which can only add code, an SDK-based aspect weaver can modify existing syntax trees.
Published
Aug 5, 2026
2mo ago
Total Downloads
200.9K
200,922
Install
dotnet add package Metalama.Framework.Sdk --version 2026.1.22
| Product | Versions |
|---|---|
| .NET Standard |
README
About
Metalama.Framework.Sdk allows you to extend Metalama using the Roslyn API.
Key Features
It includes three use cases:
- Inspecting method bodies using Roslyn's syntax tree and symbols (Metalama's code model does not give you access to this level of detail.)
- Build custom aspect weavers to create aspects that perform arbitrary syntax tree transformation.
- Build custom metrics.
Resources
- Documentation: Extending Metalama with the Roslyn API.
- Examples: Metalama.Community, a set of examples migrated from Fody.
Changes from Previous Version
No structural changes between v2026.1.21 and v2026.1.22.
Adoption Assessment
A verified publisher signal is available. Assess fit from the package's supported frameworks, license and dependency graph rather than popularity alone.
Compatibility metadata lists 1 target framework; confirm the exact target used by your application.
Related Guides & Workflows
Learn how to evaluate, integrate, or audit this package in your .NET project.