The Web.config transforms are only applied as part of a publish operation.
If you wish this to be done as part of an app.config
build operation, then you can use the SlowCheetah – XML Transforms Visual Studio plugin:
http://visualstudiogallery.msdn.microsoft.com/69023d00-a4f9-4a34-a6cd-7e854ba318b5