Global Aspect weaves it's own OnEntry method, ends up with a StackOverflowException
Hello, I have an simple OnMethodBoundaryAspect that is supposed to do some logging for me. I apply it to the assembly, so it get's added to every class and method in the assembly. But my aspect is in that assembly too. So it will be added to it's own OnEntry method, which will lead to a StackOverflowException.
public class MyAspect : OnMethodBoundaryAspect
{
public override void OnEntry(MethodExecutionArgs args)
{
Console.WriteLine("OnEntry");
}
}
In AssemblyInfo.cs
[assembly: MyAspect]

I have the same issue. I've moved my OnMethodBoundaryAspect to a separate assembly to solve it.
I also have such issue. Can you fix it please?
As a workaround you can apply the DisableWeavingAttribute to your aspect class/method
I try to implement as default behavior that aspects wont weave themselves
should be fixed in v2.0.144