I\'m a huge fan of the addition of web.config transformations in Visual Studio 2010. See also Scott Hanselman\'s recent talk at MIX2011.
What sucks is that this function
You can use the XML transformation functionality with any XML file - we do this all the time. It's available via an MSBuild task.
Try adding the following to your build script: