TeamCity On-Premises
 
Get TeamCity On-Premises

File Content Replacer

Edit pageLast modified: 03 November 2024

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.

See how to add a build feature.