VersionFunctions.

GetBuild(Version) Method

Summary

Gets the value of the build component of a given version.
Assembly
NAnt.Core.dll
Namespace
NAnt.Core.Functions
Containing Type
VersionFunctions

Syntax

[Function("get-build")]
public static int GetBuild(Version version)

Attributes

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

Parameters

Name Type Description
version Version A version.

Return Value

Type Description
int The build number, or -1 if the build number is undefined.

See Also

  • NAnt.Core.Functions.AssemblyNameFunctions.GetVersion(System.Reflection.AssemblyName)
  • NAnt.Core.Functions.EnvironmentFunctions.GetVersion
  • NAnt.Core.Functions.OperatingSystemFunctions.GetVersion(System.OperatingSystem)