NAnt SDK Documentation - v0.92

VBProject.DetermineProductVersion Method 

Returns the Visual Studio product version of the specified project XML fragment.

[Visual Basic]
Overrides Protected Function DetermineProductVersion( _
   ByVal docElement As XmlElement _
) As ProductVersion
[C#]
protected override ProductVersion DetermineProductVersion(
   XmlElement docElement
);

Parameters

docElement
The document element of the project.

Return Value

The Visual Studio product version of the specified project XML fragment.

Remarks

This method is called from the ProjectBase ctor, and at that time we're not sure the XML that is passed in, is indeed a valid Visual Basic project.

Exceptions

Exception Type Condition
BuildException

The product version could not be determined.

-or-

The product version is not supported.

See Also

VBProject Class | NAnt.VSNet Namespace