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 2, 2026
16d ago
Total Downloads
200.9K
200,922

Install

dotnet add package Metalama.Framework.Sdk --version 2026.1.29
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 v2026.1.28 and v2026.1.29.

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.