Skip to content

Instantly share code, notes, and snippets.

@rasmuskl
Created December 19, 2011 12:40
Show Gist options
  • Save rasmuskl/1497043 to your computer and use it in GitHub Desktop.
Save rasmuskl/1497043 to your computer and use it in GitHub Desktop.
MSBuild: Copy files
<Target Name="CopyDirectoryWithStructure">
<ItemGroup>
<CopyFiles1 Include="$(ProjectDir)TestData\**" Exclude="$(ProjectDir)TestData\**\.svn\**" />
</ItemGroup>
<Copy SourceFiles="@(CopyFiles1)" DestinationFolder="$(ProjectDir)..\..\bin\test\TestData\%(RecursiveDir)" SkipUnchangedFiles="true" />
</Target>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment