In the team Im working in we have a big product with many wcf web services and some web sites which use the services. We are just about to upgrade to vs 2010 and Im looking at if we should start using the new config transform functions in vs2010.
We have several different environments which needs different web.configs (database connection strings, wcf addresses and so on). Often when debugging something high up such as the web frontend it is useful to configure it to directly connect with the TEST or QA backend / databases. On each developers local machine the IIS is configured directly to the source folder of each wcf/web project, and when running locally is a simple matter of ctrl-shift-b or F5 to debug something. One would think that it would be possible to build/F5 with TEST or QA as configuration mode and get the TEST/QA config, but I dont see how? Is it not supported or maybe we need to change how we work with things?
Our other option is to instead use a simple replace-script as a prebuild event that creates the web.config from a template and a key-file depending on configuration mode. With this method you would get TEST config if you compile in TEST and so on but it feels a bit bad to roll our own solution when there is a function built into visual studio.