FileVersionInfoFunctions.

GetVersionInfo(string) Method

Summary

Returns a System.Diagnostics.FileVersionInfo representing the version information associated with the specified file.
Assembly
NAnt.Core.dll
Namespace
NAnt.Core.Functions
Containing Type
FileVersionInfoFunctions

Syntax

[Function("get-version-info")]
public FileVersionInfo GetVersionInfo(string fileName)

Attributes

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

Parameters

Name Type Description
fileName string The file to retrieve the version information for.

Return Value

Type Description
FileVersionInfo A System.Diagnostics.FileVersionInfo containing information about the file.