First declare the list of files to copy in an ItemGroup
<ItemGroup>
<Files Include=".\**\*.cs" />
</ItemGroup>
Then use the files metadata to perform the copy.
<copy DestinationFiles="@(Files)->'location\%(RecursiveDir)%(Filename)%(Extension)')" SourceFiles="@(Files)" />
More information available at MSBuild Team Blog article
No comments:
Post a Comment