TFS2010 - 并行构建 - 单一解决方案、单一构建代理
我们有 TFS2010 和一个包含近 20000 个项目的解决方案(是的,我知道,这是个坏主意,不是我的!)。通过解耦代码以实现高水平的构建并发性,我将 4 核(8 个超级)机器上的构建时间从按顺序完成的 4 分钟缩短到大约 30 秒。我现在想在构建服务器上受益,这一定是可能的,因为 MSBuild 支持并行构建。如何?
We have TFS2010 and a single solution with nearly 200 hundred projects (Yes, I know, bad idea, not mine!). I have the build time down to circa 30 seconds on a 4 core (8 hyper) machine from 4 minutes done sequentially by decoupling code to enable a high level of build concurrency. I would now like to get the benefit of that on the build server, this must be possible as MSBuild supports parallel build. How?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
您可以通过编辑构建属性在 Team Build 2010 中并行运行构建。
/maxcpucount
或/m
这是一个屏幕截图:
另请参阅
You can run builds in parallel in Team Build 2010 by editing your build properties.
/maxcpucount
or/m
Here's a screenshot:
See also
如果默认情况下未启用并行编译,请转到生成定义的“Process-Advanced”选项卡上的“其他 MSBuild 参数”属性并添加“/m”命令行开关
If parallel compilation is not enabled by default, go to Additional MSBuild parameters property on build definition's "Process-Advanced" tab and add "/m" command line switch