Skip to content

Instantly share code, notes, and snippets.

@jeevan-vj
Created July 25, 2019 09:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jeevan-vj/901b176902529a4668543737d5bb8fe7 to your computer and use it in GitHub Desktop.
Save jeevan-vj/901b176902529a4668543737d5bb8fe7 to your computer and use it in GitHub Desktop.
Copy directory recursively in Ms Build
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<ItemGroup>
<CloudArtifacts Include=".Cloud\Data\**\*.*"/>
</ItemGroup>
<Target Name="CopyFiles">
<Copy SourceFiles="@(CloudArtifacts)" DestinationFiles="@(CloudArtifacts->'c:\PackableFiles\%(RecursiveDir)%(Filename)%(Extension)')" />
</Target>
</Project>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment