|Ignoring and Escalating Warnings|
As with conventional compilers, warnings emitted by PostSharp, as well as those emitted by custom code running at build time in PostSharp, can be ignored (in that case they will not be displayed) or escalated into errors.
Warnings can be ignored either globally, using a project-wide setting, or locally for a given element of code. Warnings can be escalated only globally.
There are several ways to ignore or escalate a warning for a complete project:
In Visual Studio, in the PostSharp tab of the project properties dialog. See Configuration for details.
The value * can be used to escalate all warnings into errors.
Most warnings are related to a specific element of code. To disable a specific warning for a specific element of code, add the IgnoreWarningAttribute custom attribute to that element of code, or to any enclosing element of code (for instance, adding the attribute to a type will make it effective for all members of this type).