TargetFrameworkAttribute.FrameworkName Property

 

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

Namespace:   System.Runtime.Versioning
Assembly:  mscorlib (in mscorlib.dll)

public string FrameworkName { get; }

Property Value

Type: System.String

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

The FrameworkName property maps to the frameworkName parameter of the TargetFrameworkAttribute constructor. It represents the .NET Framework version in a compact form and typically corresponds to the string that is returned by the FrameworkName.ToString method.

Universal Windows Platform
Available since 8
.NET Framework
Available since 4.0
Portable Class Library
Supported in: portable .NET platforms
Silverlight
Available since 4.0
Windows Phone Silverlight
Available since 7.0
Windows Phone
Available since 8.1
Return to top
Show: