Overview
System Properties
The following properties are defined by PostSharp:| Name | Description |
|---|---|
PostSharpDirectory | Full path of the directory containing the
PostSharp.Core.dll library. If this library is located
in the Global Assembly Cache (GAC), this property is read from
registry. |
PlugInDirectory | Full path of the system-level plug-in directory. |
ApplicationDataDirectory | Full path of the user-level application data directory.
Typically C:\Documents and
Settings\userName\Application Data. |
UserPlugInDirectory | Full path of the user-level plug-in directory. |
TargetPlatform | When defined, name of the target platform (used to compile the
transformed assembly). Refers to a Platform element of
the application or plug-in configuration files. When not defined,
the default platform is used. |
ProjectDirectory | Full path of the directory that contains the current project
file (.psproj). |
WorkingDirectory | Working directory of the build process (as in
Environment.CurrentDirectory). |
Common Properties
The following properties are used by the default project
(Default.psproj) and are set by the MSBuild task. You
need to specify these properties if you invoke PostSharp with the
default project using the command line.
| Name | Description |
|---|---|
Output (required) | Full path of the output assembly. |
ReferenceDirectory | Directory by reference to which relative paths in the psproj will be resolved. We pass the root directory of the project (i.e. the directory containing your csprojfile). |
Configuration | Debug or Release, typically. It is not used by Default.psproj. |
Platform | Any, typically. It is not used by Default.psproj. |
SearchPath | Comma-separated list of directories that have to be added to the search path while looking for plug-ins or referenced assemblies. We pass the output directory (i.e. bin\debug) as well as all reference paths defined in user-level project properties. |
IntermediateDirectory | Tells PostSharp where to put its own intermediate stuff. We pass typically obj\debug\PostSharp. |
CleanIntermediate | Whether PostSharp should clean its intermediate files after execution. We pass false. |
MSBuildFullProjectPath | Full path of the MSBuild project file (the csproj or vbproj). This is to solve relative paths that users could pass in custom attributes. |
SignAssembly | Determines whether the assembly should be signed. We take this value from MSBuild. |
PrivateKeyLocation | Location of the private key. We take this value from MSBuild. |