TeamCity
 
You are viewing the documentation for an earlier version of TeamCity.

File Content Replacer

Last modified: 19 October 2020

File Content Replacer is the build feature which processes text files by performing regular expression replacements before a build. After the build, it restores the file content to the original state.

The common case of using File Content Replacer is replacing one attribute at a time in particular files, for example, it can be used to patch files with the build number.

You can add more than one File Content Replacer build feature if you wish to:

  • replace more than one attribute

  • replace one and the same attribute in different files/projects with different values

This feature extends the capabilities provided by AssemblyInfo Patcher.

Check the Adding Build Features section for notes on how to add a build feature.