Table of Contents

Class TargetFrameworkAttribute

Namespace
System.Runtime.Versioning
Assembly
mscorlib.dll

Identifies the version of the .NET Framework that a particular assembly was compiled against.

[AttributeUsage(AttributeTargets.Assembly)]
public sealed class TargetFrameworkAttribute : Attribute
Inheritance
TargetFrameworkAttribute
Inherited Members
Extension Methods

Constructors

TargetFrameworkAttribute(string)

Initializes an instance of the TargetFrameworkAttribute class by specifying the .NET Framework version against which an assembly was built.

public TargetFrameworkAttribute(string frameworkName)

Parameters

frameworkName string

The version of the .NET Framework against which the assembly was built.

Exceptions

ArgumentNullException

Properties

FrameworkDisplayName

Gets the display name of the .NET Framework version against which an assembly was built.

public string FrameworkDisplayName { get; set; }

Property Value

string

The display name of the .NET Framework version.

FrameworkName

Gets the name of the .NET Framework version against which a particular assembly was compiled.

public string FrameworkName { get; }

Property Value

string

The name of the .NET Framework version with which the assembly was compiled.