Open sandboxFocusImprove this doc

Extending Metalama with the Roslyn API

The Metalama.Framework.Sdk NuGet package provides direct, low-level access to Metalama using Roslyn-based APIs.

Metalama.Framework.Sdk is more complex and less secure than Metalama.Framework. Use it only for creating specialized coding aids. For conventional development, use Metalama.Framework.

Article Description
Aspect weavers Create aspect weavers that perform arbitrary transformations on C# code using the low-level Roslyn API.
Using the Roslyn API from aspects Access the syntax tree in the Roslyn API from aspects.
Custom metrics Create and consume custom metrics.
SDK extension projects Create SDK extension projects that provide custom services aspects can consume at compile time.