VersionConversionFunctions.

ToString(Version) Method

Summary

Converts the specified System.Version to its equivalent string representation.
Assembly
NAnt.Core.dll
Namespace
NAnt.Core.Functions
Containing Type
VersionConversionFunctions

Syntax

[Function("to-string")]
public static string ToString(Version value)

Attributes

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

Parameters

Name Type Description
value Version A System.Version to convert.

Return Value

Type Description
string The string representation of the values of the major, minor, build, and revision components of the specified System.Version.

See Also

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