NAnt SDK Documentation - v0.92 |

# FileVersionInfoFunctions.GetProductVersion Method

Gets the product version of a file.

[Visual Basic]
<Function(Name:="get-product-version")>
Public Shared Function GetProductVersion( _
ByVal fileVersionInfo As FileVersionInfo _
) As Version
[C#]
[Function(Name="get-product-version")]
public static Version GetProductVersion(
FileVersionInfo fileVersionInfo
);

#### Parameters

fileVersionInfo
  A FileVersionInfo instance containing version information about a file.

#### Return Value

The product version of a file.

#### See Also

FileVersionInfoFunctions Class | NAnt.Core.Functions Namespace