MSBuild flattens the folder structure
I'm trying to copy my Views folder for my MVC project in an MSBuild task, but it keeps on flatten everything, and I've tried loads of different things, but never ma开发者_JS百科nage to get it to work. Do you have any idea?
<ItemGroup>
<ViewsFolder Exclude="*.cs;*.svn-base;" Include="../MyMVCProject.Web\Views\**\*.*"/>
</ItemGroup>
<Copy SourceFiles="@(ViewsFolder)" DestinationFolder="c:\MyProject\Destination\MyMVCProject.Web\Views" />
see here using %(RecursiveDir)
<Copy SourceFiles="@(ViewsFolder)" DestinationFolder="c:\MyProject\Destination\MyMVCProject.Web\Views\%(recursiveDir)" />
精彩评论