LC.TargetFrameworkVersion Property

This API supports the .NET Framework infrastructure and is not intended to be used directly from your code.

Gets or sets he targeted version of the framework (i.e. 4.5 or 2.0, etc.).

Namespace:  Microsoft.Build.Tasks
Assembly:  Microsoft.Build.Tasks.Core (in Microsoft.Build.Tasks.Core.dll)

Syntax

'Declaration
<RequiredAttribute> _
Public Property TargetFrameworkVersion As String
[RequiredAttribute]
public string TargetFrameworkVersion { get; set; }
[RequiredAttribute]
public:
property String^ TargetFrameworkVersion {
    String^ get ();
    void set (String^ value);
}
[<RequiredAttribute>]
member TargetFrameworkVersion : string with get, set
function get TargetFrameworkVersion () : String 
function set TargetFrameworkVersion (value : String)

Property Value

Type: System.String
The targeted version of the framework (i.e. 4.5 or 2.0, etc.).

Remarks

Introduced in Visual Studio 2015.

.NET Framework Security

See Also

Reference

LC Class

Microsoft.Build.Tasks Namespace