Plug-ins are typically composed of one XML description file with
extension psplugin, one or more assemblies containing
the public interface of the feature, and one or more assemblies
containing the features implementation.
For most scenarios, PostSharp supports the so-called xcopy deployment. It is often enough to copy or uncompress the plug-in to a well-known directory.
Installation into well-known directories
If you want your plug-in to be visible to all projects without configuring all projects, you should install it into one of the two well-known directories:
- For machine-wide installation, use the
PlugInssubdirectory of the PostSharp directory (e.g.C:\Program files\postsharp.org\PostSharp\PlugIns). This directory is called the system-level plug-in directory. - For user-wide installation, use the
PostSharp 1.0subdirectory of the user Application Data directory (e.g.C:\Documents and Settings\userName\Application Data\PostSharp 1.0). This directory is called the user-level plug-in directory.
Installation into custom directories
You can install the plug-ins into any other directory, but you need to include this directory in the PostSharp search path. The easiest way to do it is to add this directory in the Reference Paths tab of the project properties dialog box, in Visual Studio.