如何在大型解决方案中编译C#项目时利用多核CPU? [英] How to leverage multicore CPUs when compiling C# projects in a large solution?

查看:1940
本文介绍了如何在大型解决方案中编译C#项目时利用多核CPU?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

据我所知,VS2008 / MSBuild不支持C#projets的多线程编译。我不知道VS2010是否支持它。

As far as I know, VS2008/MSBuild do not suport multithreaded compilation of C# projets. I don't know if VS2010 supports it. Do you know a 3rd party product or an open source projet that does that?

推荐答案

确实是MSBuild 支持多核;

Indeed MSBuild does support multiple cores; though it's a bit of a hack with some limitations.

这很容易

It's easier from the commandline.

同样,一些构建服务器(teamcity是一个,如果我记得)可以在多台机器上进一步减少构建时间。

Likewise, some build servers (teamcity is one if I recall) can have build runners on multiple machines to further reduce build times.

这篇关于如何在大型解决方案中编译C#项目时利用多核CPU?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆