walterlv / BlogComments

3 stars 0 forks source link

post/copy-all-files-with-directory-hierarchy-using-msbuild #48

Open utterances-bot opened 4 years ago

utterances-bot commented 4 years ago

使用 MSBuild Target 复制文件的时候如何保持文件夹结构不变 - walterlv

使用 MSBuild Target 复制文件的时候如何保持文件夹结构不变

https://blog.walterlv.com/post/copy-all-files-with-directory-hierarchy-using-msbuild.html

nmgwddj commented 4 years ago

想知道你的资源浏览器是什么软件。

walterlv commented 4 years ago

@nmgwddj 是 DirectoryOpus,我也写过一些博客关于它的,可以看看:

abc35277 commented 1 year ago

首先感谢博主分享的方法,这个方法我已经用上了。 但是仍然有个问题,博主文中使用了固定的路径“bin\Debug\Test\”是否能使用类似“$(OutputPath)%(RecursiveDir)”这样的路径拼接呢?

walterlv commented 1 year ago

@abc3527 非常感谢,确实应该使用你所说的方式来拼接,更加有通用性(我的其他文章中应该使用的是 %(RecursiveDir) 这样)。