Inject secrets in an app config files

Dear community, 
a question have I: is there a solution in Teamcity to inject passwords to an app config files? For example .NET apps application.json or NetFramework web.config like files.

This question is very important for enterprise (best practice) level CI/CD pipeline.

Kind regards,
your kind customer


You may use File Content Replacer build feature ( - it lets you replace text in specific file(s) basing on a regular expression defined in the feature. The changed files will be rolled back after the build is over.

Thanks, I'll try that. 
Looks like the plugin is updated recently. In 2022 the case was not covered by Teamcity neither plugins.


Please sign in to leave a comment.