...
Name | Description | Type | Usage Example | |
---|---|---|---|---|
Major | The version major portion of the version number | Integer | $Build.Version.DotNet.Major$ | "1" (given "1.2.0.1287") |
Minor | The version minor portion of the version number | Integer | $Build.Version.DotNet.Minor$ | "2" (given "1.2.0.1287") |
Build | The version build portion of the version number | Integer | $Build.Version.DotNet.Build$ | "0" (given "1.2.0.1287") |
Revision | The version revision portion of the version number | Integer | $Build.Version.DotNet.Revision$ | "1287" (given "1.2.0.1287") |
Anchor |
---|
...
|
...
|
Name | Description | Type | Usage Examples | |
---|---|---|---|---|
Format | Formats a date or time value using standard or custom .Net formatting strings | String | $Server.Now.Format("hh:mm")$ | "23:55" (given the date time "31/12/2000 23:55:333") |
ToLower | Converts a string to lowercase | String | $Source.RepoName.Branch.ToLower$ | "version 1.5" (given "Version 1.5") |
ToUpper | Converts a string to uppercase | String | $Project.Name.ToUpper$ | "PROJECT X" (given "Project X") |
Trim | Removes all leading and trailing occurrences of whitespace or the characters in the string provided | String | $Build.Version.Trim$ $Build.Version.Trim(".,")$ | "a b c d" (given " a b c d ") "a.b.c.d" (given ",a.b.c.d.") |
Replace | Replaces all occurrences of the first specified string in the current string with the second specified string | String | $Configuration.Name.Replace("v.", "version" )$ | "Test Config version 10" (given "Test Config v. 10") |
DateTime Functions
Name | Description | Type | Usage Examples | |
---|---|---|---|---|
Format | Formats a date or time value using standard or custom .Net formatting strings | String | $Server.Now.Format("hh:mm")$ | "23:55" (given the date time "31/12/2000 23:55:333") |
ToLower | Converts a string to lowercase | String | $Source.RepoName.Branch.ToLower$ | "version 1.5" (given "Version 1.5") |
ToUpper | Converts a string to uppercase | String | $Project.Name.ToUpper$ | "PROJECT X" (given "Project X") |
Trim | Removes all leading and trailing occurrences of whitespace or the characters in the string provided | String | $Build.Version.Trim$ $Build.Version.Trim(".,")$ | "a b c d" (given " a b c d ") "a.b.c.d" (given ",a.b.c.d.") |
Replace | Replaces all occurrences of the first specified string in the current string with the second specified string | String | $Configuration.Name.Replace("v.", "version" )$ | "Test Config version 10" (given "Test Config v. 10") |