December 11, 2015 | Angel Uzunov
Doing config transforms is actually supported natively within TDS, in case you don’t want to use third party development tools like Slow Cheetah.
To do this, start by adding a configuration file called web.config inside Visual Studio for your Solution, under a web project folder of your preference, such as “App_Config\Include”. Make sure that you have all build configurations in place for your project, since the next steps will create as many copies of the config file as there are build configurations for the Solution.
Right-click on the file and select the Add Config Transform option which is built-in for web.config files. That will result in the creation of additional web.config files for each of your build configurations.
Then simply rename the originally created web.config file to whichever config file name you want to use - all the subordinate configs will rename themselves as result. Prepare your config transformations for each build configuration, and on build time TDS will transform your config files automatically, depending on the build configuration you are trying to compile.