I have two build environments to target; Release and Staging. The Web.config looks like this:
Tiny improvement over Jonathan's answer:
Using this line below for importing the web targets will allow to be compatible with any Visual Studio version. Note this is not tied to version v10.0