PostSharp SDK 6.10 / / Class Reference / Post­Sharp.​Sdk.​Extensibility Namespace / Project Class

Project Class

Contains the actual configuration of the application or project at a given time in the project loading process, i.e. with resolved properties and references.
Inheritance Hierarchy
System.Object
  System.MarshalByRefObject
    PostSharp.Sdk.Extensibility.Project

Namespace:  PostSharp.Sdk.Extensibility
Assembly:  PostSharp.Compiler.Engine (in PostSharp.Compiler.Engine.dll) Version: 6.10.14.0 (6.10.14.0)
Syntax
C#
[SerializableAttribute]
public sealed class Project : MarshalByRefObject, 
	IDisposable, ITaggable, IProject, IServiceLocator, IService, 
	IExpressionEvaluator, IReflectionBindingManagerService, IProjectServiceProvider

The Project type exposes the following members.

Properties
  NameDescription
Public propertyStatic memberApplicationConfiguration
Gets the application-level configuration.
Public propertyBindingConfiguration
Public propertyDomain
Gets the Domain containing all assemblies of the current Project.
Public propertyHasAnyPlugIn
Public propertyIsDisposed
Determines whether the current instance has been disposed.
Public propertyModule
Gets the target ModuleDeclaration in its current state.
Public propertyNativeFramework
Public propertyPackages
Public propertyPlatformContext
Public propertyPlatforms
Gets the directory of platforms indexed by name.
Public propertyProjectLicenses
Public propertyProperties
Gets the collection of properties.
Public propertyRepositoryDirectories
Public propertyStateStore
Public propertyStrongNames
Gets the target platform.
Public propertyTargetAssembly
Gets the assembly being transformed.
Public propertyTargetFramework
Public propertyTasks
Gets the collection of project tasks,
Public propertyTaskTypes
Gets the directory of task types indexed by name.
Methods
  NameDescription
Public methodAddBuildDependency
Public methodAddPath
Add a directory to the project search path.
Public methodAddPlugIn
Adds and load a plugin in the current project.
Public methodCanFindPlugIn
Returns true if there is a .dll on the search path that matches the plugin name.
Public methodDispose
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Public methodEvaluate(String, MessageLocation)
Evaluates an expression.
Public methodEvaluate(String, Boolean, MessageLocation)
Evaluates an expression and specifies whether an error should be emitted if the expression results in an empty string.
Public methodExecute
Executes the current project.
Public methodExecutePhase
Executes a single phase of the project.
Public methodGetExtensionElements
Public methodGetFullPath
Gets the full path of a path that may be given either absolutely either relatively.
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetLifetimeService
Retrieves the current lifetime service object that controls the lifetime policy for this instance.
(Inherited from MarshalByRefObject.)
Public methodGetService(Type, Boolean)
Public methodGetService<T>(Boolean)
Public methodGetServices<T>
Public methodGetTag<T>
Gets a tag associated with the current declaration.
Public methodGetTask<T>
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodInitialize
Public methodInitializeLifetimeService
Obtains a lifetime service object to control the lifetime policy for this instance.
(Inherited from MarshalByRefObject.)
Public methodStatic memberLoadProject
Public methodSetTag<T>
Set a tag to the current declaration.
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Public methodTryEvaluateBoolean
Evaluates an expression and tries to convert its result to a bool.
Public methodTryEvaluateConvertible(String, Type, Object, MessageLocation)
Evaluates an expression and tries to convert its result to a given type that implements IConvertible.
Public methodTryEvaluateConvertible<T>(String, T, MessageLocation)
Evaluates an expression and tries to convert its result to a given type that implements IConvertible.
Public methodTryEvaluateEnum(String, Type, Object, MessageLocation)
Evaluates an expression and tries to convert its result to a given enumeration type.
Public methodTryEvaluateEnum<T>(String, T, MessageLocation)
Evaluates an expression and tries to convert its result to a given enumeration type.
Public methodTryEvaluateEnum<T>(String, T, T, MessageLocation)
Evaluates an expression and tries to convert its result to a given enumeration type. Returns a default value if the expression cannot be evaluated.
Public methodStatic memberValidatePath
Writes a fatal error message if a given string is not a valid path string.
Operators
  NameDescription
Public operatorStatic memberImplicit(Project to MessageLocation)
Creates a MessageLocation meaning that a message is associated with a given Project in general, but no more precise location information is available.
See Also