'Add PostSharp to this project' no action

谁说胖子不能爱 提交于 2019-12-21 18:01:06

问题


I added PostSharp via NuGet (PostSharp.4.0.40, but I also checked the .39 version), created a class inheriting from OnExceptionAspect (e.g. CustomExceptionBehaviour - I tested previously this aspect working for me in a sample Console application), how ever on any exception in the method decorated with CustomExceptionBehaviour the OnException behaviour doesn't get executed (and checking the generated assembly indeed there is no try-catch inside the method).

The project build output doesn't contain any warnings about PostSharp. I checked into the project properties, PostSaharp tab and found the 'Add PostSharp to this project' button but when I click on it nothing happens ...

Any ideas why it's not working ?

来源:https://stackoverflow.com/questions/28168340/add-postsharp-to-this-project-no-action

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!