在Visual Studio中大型工程长加载时间 [英] Long load time in Visual Studio for Large Project

查看:163
本文介绍了在Visual Studio中大型工程长加载时间的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有没有办法关闭智能感知在Visual Studio 2008?我知道删除DLL关闭智能感知在C ++中,但这并不对C#工作。我也知道偏好,但是,仅仅关闭可视化显示。我想关闭所有智能感知的,因此它不会在所有的扫描我的代码



更​​新10/14/09:埃里克还跟看一看,所以我送他一些日志信息。 。当我们得到一个我会在这里发布分辨率



更​​新:更新标题,以反映该线程


$ B $的改变方向b

有关问题




关闭智能感知为单个项目在Visual Studio 2008



解决方案

在森林狼队的人看着这对我来说,发现与智能感知的一个问题。这里是他们的描述:



它看起来像两个文件你给我包含静态部分类EntityPropertyDescriptors的一部分,我会猜测,500的所有其余文件也这样做。发生了什么事是,当我们建立我们的智能感知缓存,每次我们分析时间有一个的这些文件中,我们可以看到,它有一个静态类,我们决定看看是否静态类有任何扩展方法。为了寻求扩展方法,我们期待通过每个方法的每个的看到一部分,如果它是一个扩展方法,这使我们重新分析的每一个文件的,以便查看是否该类型具有任何扩展方法。



他们发现与VS2010一个类似的问题,但现在将其固定。不幸的是,他们不打算修复它在VS2008,所以我们只剩下把所有的部分类到单个文件的解决方法。它们仍然可以谐音,但它们必须在相同的物理文件来解决该问题。



所有部分类组合成单个文件,加载时间之后问题项目时,从30分钟到10秒左右。



非常感谢埃里克利珀和凯文皮尔希,比森对我的帮助与此有关。


Is there a way to turn off intellisense in Visual Studio 2008? I know about deleting a DLL to turn off intellisense in C++, but that doesn't work for C#. I also know about the preferences but that just turns off the visual display. I want to turn off ALL of intellisense so it does not scan my code at all.

Update 10/14/09: Eric was kind enough to take a look so I sent him some log info. I'll post the resolution here when we get one.

Update: updated title to reflect the changed direction of the thread

Related Question

Turning off Intellisense for a single project in Visual Studio 2008

解决方案

The guys on the VS team looked at this for me and found a problem with intellisense. Here's their description:

"It looks like both of the files you gave me contain a part of static partial class EntityPropertyDescriptors, and I would guess that all the rest of the 500 files do too. What’s happening is that as we build up our IntelliSense cache, each time we parse one of these files, we see that it has a static class in it, and we decide to see if that static class has any extension methods. In order to look for the extension methods, we look through each method in each part to see if it’s an extension method. This causes us to reparse every file in order to see if the type has any extension methods."

They found a similar problem with VS2010 but are fixing it now. Unfortunately, they are not going to fix it in VS2008, so we are left with the workaround of putting all the partial classes into a single file. They can still be partials, but they must be in the same physical file to get around the problem.

After combining all partial classes into a single file, load time for this problem project when from 30 minutes to about 10 seconds.

Big thanks to Eric Lippert and Kevin Pilch-Bisson for helping me with this.

这篇关于在Visual Studio中大型工程长加载时间的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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