FileVersionInfoFunctions Class

Summary

Functions that provide version information for a physical file on disk.
Assembly
NAnt.Core.dll
Namespace
NAnt.Core.Functions
Base Types
graph BT Type-->Base0["FunctionSetBase"] click Base0 "/api/NAnt.Core/FunctionSetBase" Base0-->Base1["Object"] Type["FileVersionInfoFunctions"] class Type type-node

Syntax

[FunctionSet("fileversioninfo", "Version")]
public class FileVersionInfoFunctions : FunctionSetBase

Attributes

Type Description
FunctionSetAttribute Indicates that class should be treated as a set of functions.

Constructors

Name Summary
FileVersionInfoFunctions(Project, PropertyDictionary) Initializes a new instance of the NAnt.Core.Functions.FileVersionInfoFunctions class.

Properties

Name Value Summary
Project Project
Gets or sets the NAnt.Core.FunctionSetBase.Project that this functionset will reference.
Inherited from FunctionSetBase

Methods

Name Value Summary
GetCompanyName(FileVersionInfo) string
Gets the name of the company that produced the file.
static
GetFileVersion(FileVersionInfo) Version
Gets the file version of a file.
static
GetProductName(FileVersionInfo) string
Gets the name of the product the file is distributed with.
static
GetProductVersion(FileVersionInfo) Version
Gets the product version of a file.
static
GetVersionInfo(string) FileVersionInfo
Returns a System.Diagnostics.FileVersionInfo representing the version information associated with the specified file.