title: How to specify folder structure with msbuild copy task
body: <p>I have the following msbuild script that copies the entire DeploymentDirectory to the VersionSpecificDirectory.  Here is the snippet:</p>
  
  <pre><code>&lt;CreateItem Include="$(DeploymentDirectory)/**/*.*" &gt;
    &lt;Output ItemName="AllDeploymentFilesToCopy" TaskParameter="Include" /&gt;
  &lt;/CreateItem&gt;
  &lt;Copy SourceFiles="@(AllDeploymentFilesToCopy)"
        DestinationFiles="@(AllDeploymentFilesToCopy-&gt;'$(VersionSpecificDirectory)\%(RecursiveDir)%(Filename)%(Extension)')" /&gt;
  </code></pre>
  
  <p>What would the script be for copying all the files in the DeploymentDirectory instead of the directory itself?</p>
  
  <p>Update: I tried changing the direction of the slash to be a backward slash and the problem still exists.</p>
  
  <p>Another Update: This was unrelated to the msbuild code.  Both the code in my question and the code in the answer works fine for doing this.</p>