PostSharp 5.0 / / Post­Sharp Documentation / API Reference / Post­Sharp.​Extensibility Namespace / IProject Interface / IProject Methods / IProject.​Get­Target­Assembly Method

IProject.GetTargetAssembly Method

Gets the assembly that is being transformed by PostSharp.

Namespace:  PostSharp.Extensibility
Assembly:  PostSharp (in PostSharp.dll) Version: (
Assembly GetTargetAssembly(
	bool reflectionOnly = false


reflectionOnly (Optional)
Type: System.Boolean
false if the system Assembly has to be returned, true if a wrapper has to be returned.

Return Value

Type: Assembly
The assembly being processed. If reflectionOnly is true, this method returns an instance of a PostSharp internal type implementing the Assembly interface. Otherwise, the reflection Assembly is returned.
See Also