Visual Studio 2017 在构建和调试过程中速度太慢 [英] Visual Studio 2017 is too slow during building and debugging

查看:184
本文介绍了Visual Studio 2017 在构建和调试过程中速度太慢的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我刚刚在具有以下规格的 PC 上安装了 Visual Studio 2017:

Intel Xeon E5-1600 v3 @ 3.50 GHz 处理器,16 GB RAM 和 Windows 10 Pro 64 位操作系统.

虽然 PC 性能几乎完美,但我经常在 Visual Studio 2017 中遇到缓慢的问题,尤其是在构建和调试过程中.除此之外,有时我需要在 未响应" 消息后重新启动它.

Visual Studio 2017 是否有针对此问题的稳定解决方案?..

解决方案

为了在 Visual Studio 2017 中获得更好的性能,可以应用一些性能调整,如下所示:

  1. 工具选项Current source control ...设置为Noneem> → 源代码管理

  2. 取消选中工具下的同步设置...选项 → 选项环境同步设置(对于某些版本:工具选项环境帐户)

  3. 禁用 CodeLens(可选):取消选中 Tools 下的 Enable CodeLens 选项 → Options文本编辑器所有语言

  4. 禁用诊断工具(可选):取消选中工具下的在调试时启用诊断工具选项→选项调试常规

  5. 清理以下文件夹中的内容(不要删除这些文件夹,而是只删除它们的内容)并重新启动 Visual Studio:

    清理WebSiteCache文件夹中的内容(可以在
    C:Users\%USERNAME%AppDataLocalMicrosoftWebSiteCache中找到)

    清理Temporary ASP.NET Files文件夹中的内容(可以在
    C:Users\%USERNAME%AppDataLocalTempTemporary ASP.NET 文件)

注意:如果您启用了硬件加速,或者如果您使用 Microsoft Visual Studio 2017 或 Visual Studio 2015 中的默认视觉体验设置,您可能会遇到间歇性性能问题、产品崩溃或渲染问题.为了解决这些问题,请在 ToolsOptionsEnvironmentGeneral

有关详细信息,请访问 您遇到性能问题、产品崩溃或渲染Visual Studio 2015 和 Visual Studio 2013 中的问题.

如果问题与调试有关,请尝试 Visual Studio 上的解决方法调试/加载非常慢.

我希望这会有所帮助...

I have just installed Visual Studio 2017 on a PC having the following specifications:

Intel Xeon E5-1600 v3 @ 3.50 GHz processor, 16 GB RAM and Windows 10 Pro 64-bit operating system.

Although the PC performance is almost perfect, I usually encounter slowness problem in Visual Studio 2017 especially during build and debug processes. In addition to this sometimes I need to restart it after "Not responding" message.

Is there a stable solution regarding to this problem for Visual Studio 2017?..

解决方案

In order to obtain a better performance in Visual Studio 2017, some kind of Performance Tweaks can be applied as shown below:

  1. Set Current source control … to None under ToolsOptionsSource Control

  2. Uncheck Synchronized settings across ... option under ToolsOptionsEnvironmentSynchronized Settings (for some versions: ToolsOptionsEnvironmentAccounts)

  3. Disable CodeLens (Optional): Uncheck Enable CodeLens option under ToolsOptionsText EditorAll Languages

  4. Disable Diagnostic Tools (Optional): Uncheck Enable Diagnostic Tools while debugging option under ToolsOptionsDebuggingGeneral

  5. Clean the contents in the following folders (do not delete these folders, instead delete their contents only) and restart Visual Studio:

    Clean the content in WebSiteCache folder (can be found in
    C:Users\%USERNAME%AppDataLocalMicrosoftWebSiteCache)

    Clean the content in Temporary ASP.NET Files folder (can be found in
    C:Users\%USERNAME%AppDataLocalTempTemporary ASP.NET Files)

Note: If you have Hardware Acceleration enabled or if you use the default Visual experience settings in Microsoft Visual Studio 2017 or Visual Studio 2015, you might experience intermittent performance issues, product crashes, or rendering issues. In order to work around these issues, apply the following settings under ToolsOptionsEnvironmentGeneral

For more information, visit You experience performance issues, product crashes, or rendering issues in Visual Studio 2015 and Visual Studio 2013.

If the problem is related to debugging, try the workaround on Visual Studio debugging/loading very slow.

I hope this helps...

这篇关于Visual Studio 2017 在构建和调试过程中速度太慢的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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