Vishal Joshi has a post on this: Applying XDT magic to App.Config
There's also a related, though possibly dated, question on StackOverflow here: App.Config Transformation for Visual Studio 2010?
Jim Lamb
2010-06-28 13:57:59