Web projects in Visual studio support the concept of web.config transformations, making it easy to update your configuration depending on the build you are using.
Yesterday I had a hard time to remember what the exact syntax was to update a specific appsetting. So here is a small snippet to help me remember: