Managing configuration differences between environments in Visual Studio 2010/2012
Working in a team where every developer has to keep their own custom config file can be achieved using the Visual Studio built-in configuration transformation feature ( here is more about configuration transformation ). By default the configuration transformation is applied during project package / publish process. To enable the transformation on the project build we can follow the steps described by Tim in his answer . Additionally there is an extension tool SlowCheetah - XMLTransforms which can be added to the project as a Nuget package. Once it is installed the Preview Transform context menu becomes available on the transform files. It allows to preview the web.config after transformation. Really cool! Below is the summary of how to enable web configuration transformation on the build for the Web Application Project in VS2012: Create a new XML file with the following content in your project and rename it to "[YourProjectName].wpp.targets". This file w