This is the online documentation for PostSharp 5.0.
Download PDF or CHM. Go to v4.3 or v5.0

Working with Errors, Warnings, and Messages

As any compiler, PostSharp can emit messages, warnings, and errors, commonly referred to as message. Custom code running at build time (typically the implementation of CompileTimeValidate or of a custom constraint) can use PostSharp messaging facility to emit their own messages.

In this section:

Tip Tip

PostSharp 2.1 contains an experimental feature that adds file and line information to errors and warnings. The feature requires Visual Studio. In must be enabled manually in the PostSharp tab of Visual Studio options.