TFS Build 2010 与 Windows 工作流程复制文件
我是 Windows Workflow 的新手,但非常熟悉 MSbuild 和 TFS。由于某种原因,我无法完全理解 Windows 工作流,所以我希望有人可以帮助我。从 WPF 的角度来看,我也非常熟悉 XAML,但我还没有弄清楚 Windows 工作流。
对于我的一个源代码管理项目,我希望构建所做的就是将源代码管理中某个目录下的所有文件复制到构建服务器上的本地目录。以及增加内部版本号,但该活动包含在默认模板中,因此我认为我可以处理该问题。我不需要编译或构建任何项目。我不需要运行单元测试或类似的东西。这些只是保存在源代码管理中的文件,需要从一个地方复制到另一个地方。
我看过一些关于复制文件的博客,该活动似乎很容易编写,但我不确定需要删除默认模板的哪一部分,我不确定应该在哪里添加此复制文件活动,当谈到在 TFS 中构建项目的 Windows 工作流时,我真的很困惑。有什么帮助吗?
谢谢!
I am new to Windows Workflow but very familiar with MSbuild and TFS. For some reason I can't wrap my head around Windows Workflow, so I hope someone could help me. I'm also really familiar with XAML from a WPF standpoint but I haven't figured out Windows Workflow yet.
For one of my source control projects, all I want the build to do is copy all the files in source control under a certain directory, to a local directoy on the build server. As well as increment build number, but that activity is included with the default template so I think I can handle that. I don't need to compile or build any projects. I don't need to run unit tests or anything like that. These are just files kept in source control that need to be copied from one place to another.
I've seen some blogs on copy files and that activity seems pretty easy to write, but I'm not sure what part of the default template I need to remove, I'm not sure where I should be adding this copy file activity, I'm just really confused when it comes to Windows Workflow for building projects in TFS. Any helP?
Thanks!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
请考虑使用升级模板,而不是默认模板。作为 执行TFS 2010 Build 中的旧版 MSBuild 脚本对此进行了描述:
因此,您基本上可以继续使用您的 MSBUILD 技能来完成工作!
Instead of the default template, consider using the Upgrade template. As Executing legacy MSBuild scripts in TFS 2010 Build describes it:
So you can basically just continue using your MSBUILD skills to get the job done!