【问题标题】:How to copy a recursive directory structure in TFS Team Build?如何在 TFS Team Build 中复制递归目录结构?
【发布时间】:2009-01-16 10:48:16
【问题描述】:

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

【问题讨论】:

    标签: tfs msbuild directory tfsbuild


    【解决方案1】:
    <Copy SourceFiles="@(SourceItemGroup)" DestinationFolder="$(YourDir\SubDir\%(RecursiveDir)" />
    

    【讨论】:

      【解决方案2】:

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

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

      这主要是因为 Team Build 在运行时会弄得一团糟(尤其是 Web 应用程序),而且实际上无法使用标准的 MSBuild 复制任务。

      【讨论】:

        猜你喜欢
        • 1970-01-01
        • 1970-01-01
        • 2012-02-15
        • 1970-01-01
        • 2012-09-10
        • 2011-01-07
        • 1970-01-01
        • 2015-01-07
        • 2013-01-31
        相关资源
        最近更新 更多