且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

Visual Studio 2017 在构建和调试过程中速度太慢

更新时间:2022-10-27 19:59:19

为了在 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下应用以下设置p>

有关详细信息,请访问 您遇到性能问题、产品崩溃或渲染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...