我在格式化的电脑上运行Visual Studio 2013 Pro (RTM版本)(Windows 8.1新安装)。

我不知道为什么,但是Visual Studio 2013 Pro非常非常慢!在IDE中构建、调试、导航缓慢……我的硬盘驱动器的LED根本不亮!

我在一个小的MFC (c++)项目中使用Boost库。

什么好主意吗?


当前回答

如果您在呈现.cs文件和.cshtml文件时遇到很慢的情况,有一个很好的解决方案。

只需关闭所有打开的文件,以便缓存被清除,并再次打开所需的文件。

其他回答

这个问题似乎是因为卸载了SQL Server精简版(4.0)。

我遇到了这个问题,在安装SQL Server紧凑版4.0后得到了修复。 关闭Visual Studio 2013,我得到一个消息,安装SQL Server精简版作为一个c++项目需要一些东西…什么都不能指。

它与图形驱动程序有关。如果你更新了它们,你就会没事的。

或者你可以在Visual Studio中按照以下步骤禁用硬件图形加速:

In Visual Studio, click "Tools", and then click "Options". In the Options dialog box, navigate to the "Environment > General" section and clear the "Automatically adjust visual experience based on client performance" check box. (Refer to the following screen shot for this step.) Clear the "Use hardware graphics acceleration if available" check box to prevent the use of hardware graphics acceleration. Select or clear the "Enable rich client visual experience" check box to make sure that rich visuals are always on or off, respectively. When this check box is selected, rich visuals are used independent of the computer environment. For example, rich visuals are used when you run Visual Studio locally on a rich client and over remote desktop.

引用:

在Visual Studio 2013中遇到性能问题、产品崩溃或渲染问题

我添加了“devenv.exe”作为Windows Defender的排除项。这完全解决了我的问题。人们可以第一次尝试。

我安装了Visual Studio 2013,它运行得很顺利。在某种程度上,它开始变得缓慢,并决定安装Visual Studio 2015。安装之后,没有任何变化,两个版本构建解决方案的速度都非常慢(解决方案中的18个项目大约需要10分钟)。

然后我开始考虑最近安装的扩展-最近安装的是Visual Studio的PHP工具(只在Visual Studio 2013上安装)。我不确定一个扩展如何影响其他版本的Visual Studio,但卸载它帮助我解决了这个问题。

我希望这将帮助其他人认识到这并不总是Visual Studio的错。

性能探险家

你是否一直在使用分析→性能和诊断菜单?我有!这是太棒了!但你可能需要清理一下。

打开性能资源管理器。如果您折叠其中的所有项目,选择全部,然后您可以右键单击并执行删除。

我的解决方案打开速度更快,现在运行速度也快得多。

您可能还会注意到sln文件的更改,如下所示。对我来说,这个部分已经从sln中删除了。

GlobalSection(Performance) = preSolution
    HasPerformanceSessions = true
EndGlobalSection