Provides information about the currently executing project.
Namespace: PostSharp.Extensibility
Assembly: PostSharp.dll
Syntax
[InternalImplement]
public interface IProject : IServiceLocator, IServiceRemarks
Get the current project from CurrentProject, which is null when PostSharp is not running.
Use EvaluateExpression(string) to read configuration properties and GetExtensionElements(string, string) to read custom configuration sections.
Properties
| Name | Description |
|---|---|
| StateStore | Gets the context of the current project that serves as a project-scoped cache. |
| TargetAssembly | Gets the assembly that is being transformed by PostSharp. |
Methods
| Name | Description |
|---|---|
| EvaluateExpression(string) | Evaluates an expression, that is, replaces the parameters by their actual values. |
| GetExtensionElements(string, string) | Gets the set of project extension elements (ProjectExtensionElement) given their name and XML namespace. |
| GetService<T>(bool) | Gets a build-time service exposed by PostSharp. |