如何加速大型 C# 解决方案的编译

发布于 2024-09-14 20:54:45 字数 68 浏览 2 评论 0原文

我有一个包含大约 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

空宴 2024-09-21 20:54:45

首先预编译一些项目。如果可能的话,让他们去图书馆。然后,将项目添加回来作为参考。它将大大缩短编译时间。

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.

哭了丶谁疼 2024-09-21 20:54:45

您需要编译所有项目吗?如果有一些静态项目从未被修改,您可以通过以下方式关闭编译它们:

Build -> Configuration Manager 

然后取消选择任何未更改的大型静态项目。 (显然,当您进行更改时,请记住再次打开它们!):)

如果您只想运行代码调试,这对于跳过合并模块和安装程序(需要很长时间才能编译)特别有用。

安迪.

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:

Build -> Configuration Manager 

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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文