开发者

MSBuild flattens the folder structure

开发者 https://www.devze.com 2023-01-19 11:57 出处:网络
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 wor

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)" />
0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号