-
Notifications
You must be signed in to change notification settings - Fork 1
Home
Igor Tkachev edited this page Jun 17, 2026
·
32 revisions
Important
These pages document the .NET 10 / stable interceptor version of AspectGenerator. Preview-era instructions for net8.0, InterceptorsPreviewNamespaces, AG_* defines, or path-based InterceptsLocation(filePath, line, character) are obsolete.
AspectGenerator is a source generator for compile-time call-site rewriting with C# interceptors. It is not runtime AOP: only call sites compiled with the generator can be rewritten.
<PropertyGroup>
<TargetFramework>net10.0</TargetFramework>
</PropertyGroup>The AspectGenerator NuGet package imports the required MSBuild wiring automatically for projects that reference the package directly. Every project whose call sites should be intercepted must reference AspectGenerator directly.