NAnt SDK Documentation - v0.92

FileVersionInfoFunctions.GetVersionInfo Method 

Returns a FileVersionInfo representing the version information associated with the specified file.

[Visual Basic]
<Function(Name:="get-version-info")>
Public Function GetVersionInfo( _
   ByVal fileName As String _
) As FileVersionInfo
[C#]
[Function(Name="get-version-info")]
public FileVersionInfo GetVersionInfo(
   string fileName
);

Parameters

fileName
The file to retrieve the version information for.

Return Value

A FileVersionInfo containing information about the file.

Exceptions

Exception Type Condition
FileNotFoundException The file specified cannot be found.

See Also

FileVersionInfoFunctions Class | NAnt.Core.Functions Namespace