如何加速大型 C# 解决方案的编译
我有一个包含大约 60 个大型项目的 C# 解决方案。获取最新版本后,编译需要花费大量时间。您有类似的问题吗?应该怎么办?
I have a C# solution with about 60 large projects. After a get latest version the compilation takes a lot of time. Do you have similar problems and what should be done?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
首先预编译一些项目。如果可能的话,让他们去图书馆。然后,将项目添加回来作为参考。它将大大缩短编译时间。
Pre-compile some projects first. Make them to library if possible. Then, add the projects back as reference. It will greatly shorten the compile time.
您需要编译所有项目吗?如果有一些静态项目从未被修改,您可以通过以下方式关闭编译它们:
然后取消选择任何未更改的大型静态项目。 (显然,当您进行更改时,请记住再次打开它们!):)
如果您只想运行代码调试,这对于跳过合并模块和安装程序(需要很长时间才能编译)特别有用。
安迪.
Do you need to be compiling all the projects? If there are some static projects which never get modified you can turn off compiling them by going to:
and then deselecting any large static projects which aren't changing. (Obviously remember to switch them on again when you make a change!) :)
This is especially good for skipping merge modules and installers (which take ages to compile) if you just want to run a debug of the code.
Andy.