Compartir vía


Project.HasToolsVersionAttribute Property

Definition

Public read accessor to determine if the Project file has the ToolsVersion xml attribute e.g. <Project ToolsVersion="3.5"/> . This is different to knowing the inherited value and allows us to spot Whidbey (VS 8.0) projects.

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