Integration of PostSharp with MSBuild

PostSharp is a post-compiler: it post-processes assemblies just after they have been generated by the compiler (typically C#, Visual Basic, or J#).

When you want to use PostSharp in a project, you need to integrate it in your build process.

Since the most popular build framework of .NET 2.0 is MSBuild, PostSharp comes with target definitions for MSBuild.

The easiest way to enable PostSharp in a project is to import these targets into the MSBuild project. This is described in section Enabling or Disabling PostSharp.

The current chapter gives more details about the integration of PostSharp with MSBuild: