title: Prevent overwriting of a file when deploying?
body: <p><strong>NOTE: This is for a Visual Studio Web Site Project and NOT a Web Application</strong></p>
  
  <p>I am using web deploy to push changes from my development machine to my staging server.  I would like to push any files that are different to the staging server except for one particular file (lets call it myFile.whatever)</p>
  
  <p>So far I have tried editing the <code>C:\Program Files\IIS\Microsoft Web Deploy V3\msdeploy.exe.config</code> file to look like so:</p>
  
  <pre><code>&lt;configuration&gt;
    &lt;startup&gt;
      &lt;supportedRuntime version="v2.0.50727" /&gt;
      &lt;supportedRuntime version="v4.0" /&gt;
    &lt;/startup&gt;
    &lt;rules&gt; &lt;------------ ADDED THIS NODE
      &lt;rule name="skipConfig" type="Microsoft.Web.Deployment.DeploymentSkipRuleHandler"
            objectName="filePath" skipAction="Delete" 
            absolutePath="C:\inetpub\wwwroot\MyProject\myFile.whatever"/&gt;
    &lt;/rules&gt;
  &lt;/configuration&gt;
  </code></pre>
  
  <p>But it is still overwriting the file in question on my staging server.  I started by editing the <code>msdeploy.exe.config</code> on my dev machine and when that didn't work I updated the <code>msdeploy.exe.config</code> on my staging server as well, but again, still not working.</p>
  
  <p>Am I going about this wrong?  Any suggestions on preventing this file from being overwritten?</p>