简体   繁体   English

Visual Studio for Large Project中的长加载时间

[英]Long load time in Visual Studio for Large Project

Is there a way to turn off intellisense in Visual Studio 2008? 有没有办法在Visual Studio 2008中关闭intellisense? I know about deleting a DLL to turn off intellisense in C++, but that doesn't work for C#. 我知道删除一个DLL以关闭C ++中的intellisense,但这对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. 我想关闭所有intellisense所以它根本不扫描我的代码。

Update 10/14/09: Eric was kind enough to take a look so I sent him some log info. 更新10/14/09:Eric非常友好地看一下,所以我给他发了一些日志信息。 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 在Visual Studio 2008中关闭单个项目的Intellisense

The guys on the VS team looked at this for me and found a problem with intellisense. VS团队的人员为我看了这个,发现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." “看起来你给我的两个文件都包含静态部分类EntityPropertyDescriptors的一部分,我猜这500个文件的其余部分也是如此。当我们构建智能感知缓存时,每次我们都会发生这种情况解析其中一个文件,我们看到它中有一个静态类,我们决定看看那个静态类是否有任何扩展方法。为了查找扩展方法,我们查看每个部分中的每个方法来查看如果它是一个扩展方法。这会导致我们重新解析每个文件 ,以查看该类型是否有任何扩展方法。“

They found a similar problem with VS2010 but are fixing it now. 他们发现了与VS2010类似的问题,但现在正在修复它。 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. 不幸的是,他们不会在VS2008中修复它,因此我们留下了将所有部分类放入单个文件的解决方法。 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. 将所有部分类组合到单个文件中后,从30分钟到大约10秒,加载此问题项目的时间。

Big thanks to Eric Lippert and Kevin Pilch-Bisson for helping me with this. 非常感谢Eric Lippert和Kevin Pilch-Bisson为我提供帮助。

You need to switch off background compilation. 您需要关闭后台编译。

Here is a HowTo: 这是一个HowTo:

http://ira.me.uk/2008/09/01/switch-offon-visual-studio-2008-background-compilation/ http://ira.me.uk/2008/09/01/switch-offon-visual-studio-2008-background-compilation/

Tools -> Options -> Text Editor -> C# -> Advanced -> Show live semantic errors 工具 - >选项 - >文本编辑器 - > C# - >高级 - >显示实时语义错误

You will still get error underlining, but you must hit the Build button before they show up. 您仍然会收到错误下划线,但必须在出现之前点击“构建”按钮。

在工具>选项>文本编辑器> C#中有一个智能感知部分,它看起来像你想要的那样。

Have you tried cleaning your solution from all temporary files created by Visual Studio? 您是否尝试过从Visual Studio创建的所有临时文件中清除解决方案? Sometimes these files could get corrupted, the chances might especially be high if you migrated from VS 2005. 有时这些文件可能会损坏,如果从VS 2005迁移,则可能会特别高。

Close your solution, look for all *.suo and *.ncb files and remove/rename them, and then re-open the solution. 关闭解决方案,查找所有* .suo和* .ncb文件并删除/重命名它们,然后重新打开解决方案。

Just another thing to make sure: Are there any third-party add-ins installed? 还有一件事要确定:是否安装了第三方加载项? Try to start VS in SafeMode using the /SafeMode command-line option. 尝试使用/SafeMode命令行选项在SafeMode中启动VS.

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM