I added PostSharp via NuGet (PostSharp.4.0.40, but I also checked the .39 version), created a class that inherits from OnExceptionAspect (e.g. CustomExceptionBehaviour - I previously tested this aspect working for me in the Console test application) however an exception in the method decorated with CustomExceptionBehaviour, the OnException behavior is not executed (and the generated assembly is checked, indeed, there is no try-catch attempt in this method).
The project build output does not contain warnings about PostSharp. I checked the project properties, the PostSaharp tab and found the "Add PostSharp to this project" button, but when I click on it, nothing happens ...
Any ideas why it doesn't work?
source
share