NAnt SDK Documentation - v0.92 |

# ManagedProjectBase.GetProductVersion Method

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

[Visual Basic]
Protected Shared Function GetProductVersion( _
ByVal projectNode As XmlNode _
) As ProductVersion
[C#]
protected static ProductVersion GetProductVersion(
XmlNode projectNode
);

#### Parameters

projectNode
  XML fragment representing the project to check.

#### Return Value

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

#### Exceptions

Exception Type | Condition
--- | ---
BuildException | The product version could not be determined. -or- The product version is not supported.

#### See Also

ManagedProjectBase Class | NAnt.VSNet Namespace