如何在 TFS Team Build 中复制递归目录结构?
是否可以复制团队构建目标中的目录?
Is it possible to copy a directory in a team build target?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
是否可以复制团队构建目标中的目录?
Is it possible to copy a directory in a team build target?
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
接受
或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
发布评论
评论(2)
我发现最简单的方法(如果您想对包含/排除的内容更加严格)是使用我编写的一些自定义 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.