In TFS 2013 Release Management, you are supposed to be able to create tokenized versions of your config files. Everything that I have read indicates that if you want to tokenize your web.config file, you would create an exact copy of the file and you would name it web.config.token and you would place this file next to web.config in source control. Then, in web.config.token, you would replace elements with __TokenName__. For instance, lets say you wanted to tokenize your database server and database name in your connection string. Your web.config.token file would look something like this:
Id=SomeUser;Password=abcdefg; Trusted_Connection=yes;” />
Then, in Release Management, when you define your deployment components, you would go to the Configure Variables tab and configure your component to scan all .config files and do a variable replacement after the installation was finished:
The downside is that I need to add these actions for every config file that needs to be replaced.
This is just a workaround. Hopefully, Microsoft will fix their ReleaseTfvcTEmplate.12.xaml soon.