在VS 2010发布模式下进行编译非常慢 [英] Compilation in VS 2010 Release mode Very slow
问题描述
我刚刚将我的项目从VS 2003转换为VS2010,并且遇到了很多麻烦.
I have just transformed my project from VS 2003 to VS2010 and getting so much trouble.
首先在Debug模式下可以,但是在Release模式下,即使是一个文件的编译
First of all in Debug mode its ok but in Release mode even for one file compilation
大约需要10分钟.
为什么这么慢,要发布一个版本,我必须等待20分钟以上?
Why its so slow,for one release I have to wait more than 20mins?
此致
Koushik
推荐答案
Hello Koushik,
Hello Koushik,
调试模式和发布模式之间有一些区别(请参阅 此线程 以获取更多评论).如您所见,如果切换到发布模式,则意味着您的代码 经过优化,并将为最终用户生成最终版本.因此,如果您的解决方案中有很多项目,那将花费几分钟甚至更长的时间.
There are a few differences between Debug mode and Release mode (please see this thread for more comments). As you may see, if you switch to Release mode, that means your code is optimized and will generate a final version for end users. Hence, if there are many projects in your solution, that would take a few minutes or even longer.
请在解决方案资源管理器中右键单击解决方案名称,然后选择属性",然后转到配置属性->".配置.请确保仅对要构建/重建的项目设置构建"复选框.那告诉Visual Studio 仅为您构建/重建项目,这可能需要很短的时间.
Please right click the solution name in Solution Explorer and select Properties and then go to Configuration Properties -> Configuration. Please make sure to set the Build checkbox for only the project you want to build/rebuild. That tells Visual Studio only build/rebuild the project for you which may take short time.
顺便说一句,以斯帖,请尽早移动线程.谢谢.
By the way, Esther, please move threads as earlier as possible. Thanks.
最诚挚的问候
这篇关于在VS 2010发布模式下进行编译非常慢的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!