PostSharp 4.3 / / Post­Sharp Documentation / API Reference / Post­Sharp.​Extensibility Namespace / IProject Interface / IProject Methods / IProject.​Get­Framework­Variant Method
IProject.GetFrameworkVariant Method

Note: This API is now obsolete.

Gets the variant of the .NET Framework against which the .NET assembly currently processed is linked.

Namespace: PostSharp.Extensibility
Assembly: PostSharp (in PostSharp.dll) Version: (
[ObsoleteAttribute("Use TargetDevice property.")]
string GetFrameworkVariant()

Return Value

Type: String
A string uniquely identifying the framework variant, to be compared to the constants defined in the FrameworkVariants class. Actually, the public key token of mscorlib is returned.
See Also