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:
- Section Using PostSharp Targets for MSBuild describes the behavior of PostSharp targets for MSBuild and explains how to override the default behavior.
- Section Recognized MSBuild Properties describes which properties are recognized by PostSharp targets and used to configure their behavior.
- Section Using the PostSharp MSBuild Task describes how to use the MSBuild task independently from PostSharp targets.