Project.HasToolsVersionAttribute Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.