title: How do you handle multiple web.config files for multiple environments?
body: <p>The way I currently handle this is by having multiple config files such as:</p>
  
  <pre><code>web.config
  web.Prod.config
  web.QA.config
  web.Dev.config
  </code></pre>
  
  <p>When the project gets deployed to the different environments I just rename the corresponding file with the correct settings.</p>
  
  <p>Anyone have suggestions on how to handle this better?</p>
  
  <p>EDIT:
  Here are some of the things that change in each config:</p>
  
  <ul>
  <li>WCF Client Endpoint urls and security</li>
  <li>Custom Database configs</li>
  <li>Session connection strings</li>
  <li>log4net settings</li>
  </ul>