Skip to main content
.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
Oct 13, 2026
5d ago
Total Downloads
200.9K
200,922

Install

dotnet add package Metalama.Framework.Sdk --version 2027.0.4-preview
ProductVersions
.NET Standard
netstandard2.0

README

Metalama by PostSharp

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

Changes from Previous Version

No structural changes between v2027.0.3-preview and v2027.0.4-preview.

Adoption Assessment

A verified publisher signal is available. Assess fit from the package's supported frameworks, license and dependency graph rather than popularity alone.

This version is marked prerelease. Validate its API and upgrade path before production use.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.