如何在 TFS Team Build 中复制递归目录结构?

发布于 2024-07-12 03:10:22 字数 24 浏览 6 评论 0原文

是否可以复制团队构建目标中的目录?

Is it possible to copy a directory in a team build target?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

不忘初心 2024-07-19 03:10:22
<Copy SourceFiles="@(SourceItemGroup)" DestinationFolder="$(YourDir\SubDir\%(RecursiveDir)" />
<Copy SourceFiles="@(SourceItemGroup)" DestinationFolder="$(YourDir\SubDir\%(RecursiveDir)" />
音盲 2024-07-19 03:10:22

我发现最简单的方法(如果您想对包含/排除的内容更加严格)是使用我编写的一些自定义 MSBuild 任务:http://www.aaron-powell.com/blog.aspx?cat=AaronPowell.MSBuild.Tasks

您提供源目录、目标方向(提供网络共享支持)和要排除的文件名/扩展名。

这主要是因为 Team Build 在运行时会造成真正的混乱(尤其是 Web 应用程序),并且实际上不可能使用标准的 MSBuild 复制任务。

I've found the easiest way (if you want to be a bit more stringent about what to include/ exclude) is with some custom MSBuild tasks I've written: http://www.aaron-powell.com/blog.aspx?cat=AaronPowell.MSBuild.Tasks

You provide a source directory, a destination direction (support for network shares is provided) and file names/ extensions to exclude.

It's mainly because Team Build makes a real mess (particularly with web apps) when it run and it's not really possible to use the standard MSBuild copy tasks.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文