title: Nested Virtual Directory Deleted on msdeploy
body: <p>The project I have uses msdeploy to publish a package to IIS. It deploys over an existing version of the project. within the web application, I have a virtual directory, but every time I deploy the project, the virtual directory disappears.</p>
  
  <p>I am calling MSDepoly in the following manner:</p>
  
  <pre><code> -source:package='d:\[...]\9.1.0.67\application\AppName.zip' -dest:auto,computerName="hostSite.com",userName="AutoInstall",password="****",authtype="NTLM",includeAcls="False" -verb:sync -enableLink:AppPoolExtension -disableLink:ContentExtension -disableLink:CertificateExtension -setParamFile:"d:\...\9.1.0.67\application\AppName.SetParameters.xml" -skip:objectName=binding -skip:absolutePath="info$" -skip:objectName=dirPath,absolutePath="help$",skipAction=Delete
  </code></pre>
  
  <p>as you can see at the end, I have the following skip rules:</p>
  
  <pre><code>-skip:objectName=binding -skip:absolutePath="info$" -skip:objectName=dirPath,absolutePath="help$",skipAction=Delete
  </code></pre>
  
  <p>The binding skip rule is working, but the virtual directory, info, is still getting removed from the web application. the virtual directory is nested within the help directory, so I added the skip action to skip deleting that folder as well.</p>
  
  <p>I based all of this information from the following <a href="http://blog.richardszalay.com/2012/12/18/demystifying-msdeploy-skip-rules/" rel="nofollow">blog article</a>, but my virtual directory, info, is still getting removed on deployment.</p>
  
  <p>Please help!</p>