FileVersionInfoFunctions.

GetFileVersion(FileVersionInfo) Method

Summary

Gets the file version of a file.
Assembly
NAnt.Core.dll
Namespace
NAnt.Core.Functions
Containing Type
FileVersionInfoFunctions

Syntax

[Function("get-file-version")]
public static Version GetFileVersion(FileVersionInfo fileVersionInfo)

Attributes

Type Description
FunctionAttribute Indicates that the method should be exposed as a function in NAnt build files.

Parameters

Name Type Description
fileVersionInfo FileVersionInfo A System.Diagnostics.FileVersionInfo instance containing version information about a file.

Return Value

Type Description
Version The file version of a file.