-
Notifications
You must be signed in to change notification settings - Fork 1
Limitations
Igor Tkachev edited this page Jun 17, 2026
·
3 revisions
AspectGenerator is compile-time call-site rewriting, not runtime AOP.
- static method calls;
- instance method calls;
- extension method calls;
- generic method calls;
- target filters;
-
Task,Task<T>,ValueTask, andValueTask<T>targets; -
ref,out, andinparameters.
- constructors;
- properties and indexers;
- operators;
- delegates;
- reflection calls;
- local functions;
- calls already compiled in external assemblies;
- projects that only reference an aspect library transitively without a direct AspectGenerator package reference;
-
async voidmethods.
Unsupported cases either cannot be represented as ordinary interceptable invocation syntax or are not implemented by AspectGenerator yet.
The source generator runs in the compilation of the project that references the generator package. A transitive reference to an aspect library is not enough to run AspectGenerator in the consuming project; projects with intercepted call sites must reference AspectGenerator directly.