There are three conditions for automatically processing a PostSharp project:
- PostSharp was installed using the installer.
- The project has a link (direct or indirect) to PostSharp.dll.
- The MSBuild SkipPostSharp property is different from true, and the SkipPostSharp compilation symbol is undefined.
- , PostSharp VS-.
PostSharp , SkipPostSharp = True . , PostSharp.Custom.targets :
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<SkipPostSharp Condition="'$(SkipPostSharp)'==''">True</SkipPostSharp>
</PropertyGroup>
</Project>
, PostSharp, SkipPostSharp = False. , "" "".