Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

The expansion icon (below) denotes fields that have expression capabilities. Note is some areas, such as configuration variables, you can click on this icon to disable expressions

...

Anchor
dotnet
dotnet
General Functions (used by DateTime and String objects)

NameDescriptionTypeUsage ExampleExamples
FormatFormats a date or time value using standard or custom .Net formatting stringsString$Server.Now.Format("hh:mm")$"23:55" (given the date time "31/12/2000 23:55:333")
ToLowerConverts a string to lowercaseString$Source.RepoName.Branch.ToLower$"version 1.5" (given "Version 1.5")
ToUpperConverts a string to uppercaseString$Project.Name.ToUpper$"PROJECT X" (given "Project X")
TrimRemoves all leading and trailing occurrences of whitespace or the characters in the string providedString

$Build.Version.Trim$

$Build.Version.Trim(".,")$

"a b c d" (given " a b c d  ")

"a.b.c.d" (given ",a.b.c.d.")

ReplaceReplaces all occurrences of the first specified string in the current string with the second specified stringString$Configuration.Name.Replace("version", "v." )$"Test Config version 10" (given "Test Config v. 10")