I have a Visual Studio project which is under version control
and is developed by several people,
all of whom need to have different database and logfile settings during development.
Visual Studio has built-in support for
Config Transforms
for web.config
files; all you need to do is
right-click the web.config
file in the solution explorer
and click 'Add Config Transforms'.
However, these transforms are applied only when publishing the project,
not when debugging it using Visual Studio.
The solution to this is to implement the config transforms manually with a pre-build task and leave the debug transform out of version control, so each developer can have their own copy.