The following table lists MSBuild properties recognized by the default PostSharp target.
| Property | Description |
|---|---|
PostSharpProject
|
Location of the PostSharp project (.psproj) to be
executed immediately after compilation, or the string
None to specify that PostSharp should not be invoked.
If this property is defined, the standard detection mechanism based
on references to the PostSharp.Public.dll is
disabled. |
PostSharpAutoUpdateDisable
|
True if the auto-update mechanism should be
disabled, False otherwise. |
PostSharpParameters
|
Additional parameters (or properties) passed to the PostSharp
project, in format Name1=Value1;Name2=Value2. |
PostSharpConfiguration
|
Configuration in which the project is being built (typically
Debug or Release). The
Configuration property in the PostSharp project is set
to the value of this MSBuild property. By default, this property is
set to the value of the Configuration MSBuild
property. |
PostSharpPlatform
|
Platform for which the project being built (typically
AnyCPU). The Platform property in the
PostSharp project is set to the value of this MSBuild property. By
default, this property is set to the value of the
Platform MSBuild property. |
PostSharpIntermediateDirectory
|
Directory in which PostSharp stores its intermediate files. By
default, this property is set to
$(IntermediateOutputPath)PostSharp |
PostSharpBackupDirectory
|
Directory in which compiled assemblies should be backed up
before being transformed by PostSharp, in case that Visual Studio
code analysis (FxCop) is enabled. By default, this property is set
to $(IntermediateOutputPath)Before-PostSharp. |
PostSharpSignAssembly
|
True if the assembly should be strong-name signed,
otherwise False. The default value of this property is
$(SignAssembly) if this property is defined, otherwise
False. Note that even if the
PostSharpSignAssembly is set to False,
the assembly may be signed if it has signing instructions were
given as custom attributes. |
PostSharpAttachDebugger
|
If this property is set to True, PostSharp will
break before starting execution, allowing you to attach a debugger
to the PostSharp process. The default value is
False. |
PostSharpUseCommandLine
|
True if PostSharp should be invoked using the
command-line utility, False if the MSBuild task should
be used. The default value of this property is
True. |
PostSharpVerbose
|
True to enable the PostSharp tracing facility,
otherwise False. You should also run MSBuild with
detailed level of verbosity (/v:detailed) and enable
individual tracing categories in the file
PostSharp-Library.config. |