File Content Replacer provides a template for every attribute to be replaced. Clicking the Load Template... button displays the combobox with templates containing value presets for replacement. The templates can be filtered by language (e.g.
Click Edit file list and specify paths to files where the values to be replaced will be searched. Provide a newline- or comma-separated set of rules in the form of +|-:[path relative to the checkout directory] .
By default, TeamCity will auto-detect the file encoding. To specify the encoding explicitly, select it from the drop-down. When specifying a custom encoding, make sure it is supported by the agent.
By default, the comparison is case-sensitive. Uncheck for case-insensitive languages.
Since TeamCity 2017.1 The box is checked by default and applies to both the search and replacement strings. Uncheck to use fixed strings.
Type the text to be used for replacing the characters in the Find what box. To delete the characters in the Find what box from your file, leave this box blank.
$N sequence references N-th capturing group. All backslashes (\) and dollar signs ($) without a special meaning should be quoted (as \\ and \$, respectively).
- Load the
AssemblyInfotemplate corresponding to the attribute you are trying to process (e.g.
- Change the list of file paths in the Look in field from the default
*/CommonAssemblyInfo.csor list several files comma- or new-line separated files here, e.g.