Project.HasToolsVersionAttribute Property

Definition

Gets whether the Project file has the ToolsVersion XML attribute.

public:
 property bool HasToolsVersionAttribute { bool get(); };
public bool HasToolsVersionAttribute { get; }
member this.HasToolsVersionAttribute : bool
Public ReadOnly Property HasToolsVersionAttribute As Boolean

Property Value

true if the project has the ToolsVersion attribute; otherwise, false.

Remarks

An example ToolsVersion attribute is Project ToolsVersion="3.5". This attribute enables projects to target .NET Framework versions, currently 2.0, 3.0, and 3.5.

Applies to