Web projects in Visual Studio 2010 have the ability to define web.config transformations. That way a developer can create web.config files for each solution configuration based on a base web.config. Sadly this functionality is only available for web.config files. Other configuration files, like the aap.config, are not supported. So it seems anyway. The following links show how to make it work for every config file.
- http://vishaljoshi.blogspot.com/2010/05/applying-xdt-magic-to-appconfig.html,
- http://msdn.microsoft.com/en-us/library/dd465326(VS.100).aspx,
- http://stackoverflow.com/questions/2905151/msbuild-script-and-vs2010-publish-apply-web-config-transform,
- http://geekswithblogs.net/EltonStoneman/archive/2010/08/20/using-msbuild-4.0-web.config-transformation-to-generate-any-config-file.aspx.
I hope this information will help you with your projects. Happy programming.