title: VS 2015 Web Deploy to Azure Web App Staging deployment slot overwrites PROD slot
body: <p>I am experiencing a strange issue with Visual Studio Community 2015 web deployments to azure web apps. I have a Production slot and a Staging slot. When I perform a Web Deploy to Staging, it is also overwriting the web.config in the Production slot!</p>
  
  <ol>
  <li>The web.config is transformed correctly per my staging web.config transformations and I can validate this by looking locally at it in <code>obj\Staging\TransformWebConfig\transformed\web.config</code>.</li>
  <li>The log in the build output window in VS all looks correct <code>Updating file (xxxx__staging\Web.config)</code>.</li>
  </ol>
  
  <p>Yet when I run the application in the PROD slot, it is pointing to the database that was designated in the Staging web.config. And when I view the web.config in PROD via FTP, I see that all the STAGE web.config transformations are there as well. So from what I can tell, the STAGE web deployment is updating BOTH the Prod and Stage files...well at least the web.config file.</p>
  
  <p>The reverse is also true. When doing a web deploy to PROD, it is overwriting the web.config in STAGE as well.</p>
  
  <p>Is there some sync setting that tells Azure to sync these deployment slots or some other logical explanation?</p>