TargetPlatformVersion Property

MSBuild

Gets or sets the .NET framework version for the target assembly.


Namespace: MSBuild.Community.Tasks
Assembly: MSBuild.Community.Tasks (in MSBuild.Community.Tasks.dll)

Syntax

Visual Basic (Declaration)
Public Property TargetPlatformVersion As String
C#
public string TargetPlatformVersion { get; set; }
C++
public property string TargetPlatformVersion sealed  {
    String get();
    void set(String value);
}
J#
/** property */
public string get_TargetPlatformVersion();

/** property */
public void set_TargetPlatformVersion(string value);
JScript
public function get TargetPlatformVersion() : String

public function set TargetPlatformVersion(value : String);

Remarks

Valid values are "v1", "v1.1", "v2".

Corresponds to the first part of command line option "/targetplatform".

The default value is null.

See Also

Syntax based on .NET Framework version 2.0.
Documentation version 1.0.0.0.