You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Igor Tkachev edited this page Jun 17, 2026
·
32 revisions
AspectGenerator Wiki
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.
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.