Visual Studio 2017 在构建和调试过程中速度太慢 [英] Visual Studio 2017 is too slow during building and debugging
问题描述
我刚刚在具有以下规格的 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 中获得更好的性能,可以应用一些性能调整,如下所示:
在工具 → 选项下将Current source control ...设置为Noneem> → 源代码管理
取消选中工具下的同步设置...选项 → 选项 → 环境 → 同步设置(对于某些版本:工具 → 选项 → 环境 → 帐户)
禁用 CodeLens(可选):取消选中 Tools 下的 Enable CodeLens 选项 → Options → 文本编辑器 → 所有语言
禁用诊断工具(可选):取消选中工具下的在调试时启用诊断工具选项→选项 → 调试 → 常规
清理以下文件夹中的内容(不要删除这些文件夹,而是只删除它们的内容)并重新启动 Visual Studio:
清理WebSiteCache文件夹中的内容(可以在
C:Users\%USERNAME%AppDataLocalMicrosoftWebSiteCache中找到)清理Temporary ASP.NET Files文件夹中的内容(可以在
C:Users\%USERNAME%AppDataLocalTempTemporary ASP.NET 文件)
注意:如果您启用了硬件加速,或者如果您使用 Microsoft Visual Studio 2017 或 Visual Studio 2015 中的默认视觉体验设置,您可能会遇到间歇性性能问题、产品崩溃或渲染问题.为了解决这些问题,请在 Tools → Options → Environment → General下应用以下设置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:
Set Current source control … to None under Tools → Options → Source Control
Uncheck Synchronized settings across ... option under Tools → Options → Environment → Synchronized Settings (for some versions: Tools → Options → Environment → Accounts)
Disable CodeLens (Optional): Uncheck Enable CodeLens option under Tools → Options → Text Editor → All Languages
Disable Diagnostic Tools (Optional): Uncheck Enable Diagnostic Tools while debugging option under Tools → Options → Debugging → General
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 Tools → Options → Environment → General
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屋!