FileVersionInfoFunctions.

GetProductName(FileVersionInfo) Method

Summary

Gets the name of the product the file is distributed with.
Assembly
NAnt.Core.dll
Namespace
NAnt.Core.Functions
Containing Type
FileVersionInfoFunctions

Syntax

[Function("get-product-name")]
public static string GetProductName(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
string The name of the product the file is distributed with.