title: MS Web Deploy Skip Delete Rule not skipping
body: <p>I've added the following skip rule to my project but when I use Web Deploy to publish the contents, the files in the /config folder are being wiped out. </p>
  
  <p>I'm using the process found <a href="http://blog.alanta.nl/2011/02/web-deploy-customizing-deployment.html" rel="noreferrer">here</a> and I swear it was working previously.</p>
  
  <p>I've added the following to my project file:</p>
  
  <pre><code>&lt;PropertyGroup&gt;
      &lt;OnBeforePackageUsingManifest&gt;AddCustomSkipRules&lt;/OnBeforePackageUsingManifest&gt;
  &lt;/PropertyGroup&gt;
  &lt;Target Name="AddCustomSkipRules"&gt;
      &lt;ItemGroup&gt;
        &lt;MsDeploySkipRules Include="SkipConfigFolder"&gt;
          &lt;SkipAction&gt;Delete&lt;/SkipAction&gt;
          &lt;ObjectName&gt;dirPath&lt;/ObjectName&gt;
          &lt;AbsolutePath&gt;.*\\config\\$&lt;/AbsolutePath&gt;
          &lt;XPath&gt;&lt;/XPath&gt;
        &lt;/MsDeploySkipRules&gt;
        &lt;MsDeploySkipRules Include="SkipConfigSubFolders"&gt;
          &lt;SkipAction&gt;Delete&lt;/SkipAction&gt;
          &lt;ObjectName&gt;dirPath&lt;/ObjectName&gt;
          &lt;AbsolutePath&gt;.*\\config\\.*$&lt;/AbsolutePath&gt;
          &lt;XPath&gt;&lt;/XPath&gt;
        &lt;/MsDeploySkipRules&gt;  
      &lt;/ItemGroup&gt;
  &lt;/Target&gt;
  </code></pre>
  
  <p>When I publish (via command-line using the cmd file generated by the package), the following is outputted:</p>
  
  <pre><code>-------------------------------------------------------
   Start executing msdeploy.exe
  -------------------------------------------------------
   "C:\Program Files\IIS\Microsoft Web Deploy V2\\msdeploy.exe" 
     -source:package='&lt;MyPackageFile&gt;' 
     -dest:auto,includeAcls='False' 
     -verb:sync 
     -disableLink:AppPoolExtension 
     -disableLink:ContentExtension 
     -disableLink:CertificateExtension 
     -skip:skipaction='Delete',objectname='dirPath',absolutepath='.*\\config\\$' 
     -skip:skipaction='Delete',objectname='dirPath',absolutepath='.*\\config\\.*$' 
     -setParamFile:"&lt;MySetParameters.xml&gt;"
  Info: Deleting filePath (Default Web Site/uPPK_32\config\New Text Document.txt).
  </code></pre>
  
  <p>It looks like the skip rule is being added but notice New Text Document.txt is being deleted. How can I prevent this? Am I missing something?</p>