MSBuild 与工作流
我们公司已经成功使用 MSBuild 几年了。我们为每个构建规范(发布、调试等)都有一个非常自定义的 .proj 构建文件,其中包括许多操作:
- 混淆、
- 打包、
- 复制输出、
- 压缩
- 等,
因为 Microsoft 在 TFS2010 中包含了一项新功能,使使用 Windows Workflow Foundation 进行构建,我们正在考虑对其进行更改。正如 Jim Lab(Team Foundation Server 项目经理)在 文章,这是他关于何时应该使用它们的一般指导:
- 如果任务需要了解特定构建输入或输出, 使用 MSBuild
- 如果该任务是您在构建时需要完成的任务 Visual Studio,使用 MSBuild
- 如果任务是您只需要在构建基础时执行的任务 构建服务器,使用 WF 除非需要特定的知识 构建输入/输出
我对此还不太确定,我想知道您自己的经验、积极的事情、缺点等。如果您修改了 DefaultTemplate.xaml,您的意见会更有价值执行您自己的操作。
We have been using MSBuild for a few years successfully in our company. We have a very custom .proj build file for every Build specification (Release, Debug, etc.) which include many operations as:
- Obfuscation
- Packing
- Copying outputs
- Compressing
- Etc
Since Microsoft included a new feature in TFS2010 to make builds using Windows Workflow Foundation, we are thinking to change to it. As Jim Lab (Program Manager for Team Foundation Server) said in an article, here's his general guidance on when should be use them:
- If the task requires knowledge of specific build inputs or outputs,
use MSBuild- If the task is something you need to happen when you build in
Visual Studio, use MSBuild- If the task is something you only need to happen when you build on
the build server, use WF unless it requires knowledge of specific
build inputs/outputs
I am not still quite sure about it and I would like to know your own experience, positive things, drawbacks, etc. Your opinion would be more valuable if you have modified the DefaultTemplate.xaml to perform your own operations.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我们已经从 MSBuild 过渡到工作流,从 TFS2008 迁移到 TFS2010。一些经验:
个人总体印象:使用 MSBuild 进行小型开发团队驱动的构建。使用成熟产品生产线的工作流程。
We've made the transition from MSBuild to Workflow migrating from TFS2008 to TFS2010. Some experiences:
Personal overall impression: use MSBuild for smaller development team driven building. Use Workflow for mature product manufacturing lines.