Visual Studio 2015 中右键单击 Web 项目中的文件夹时上下文菜单变慢
Slow context menu in Visual Studio 2015 on right click folder in web project
我们的一些团队在 Windows 10 Pro 64 位上试用 VS 2015 时遇到了这个问题:
Visual Studio 2013 context menus slow only in web application project
右键单击文件夹(仅在 Web 应用程序项目中的文件夹)时,呈现上下文菜单和任何对话框都会出现长时间延迟。
安装详情:
Microsoft Visual Studio Professional 2015
Version 14.0.23107.0 D14REL
Microsoft .NET Framework
Version 4.6.00079
Installed Version: Professional
Visual Basic 2015 00322-50050-08414-AA353
Microsoft Visual Basic 2015
Visual C# 2015 00322-50050-08414-AA353
Microsoft Visual C# 2015
Visual C++ 2015 00322-50050-08414-AA353
Microsoft Visual C++ 2015
Visual F# 2015 RC 00322-50050-08414-AA353
Microsoft Visual F# 2015 RC
ASP.NET and Web Tools 14.0.20626.0
ASP.NET and Web Tools
ASP.NET Web Frameworks and Tools 2013 5.2.30624.0
For additional information, visit http://www.asp.net/
Common Azure Tools 1.5
Provides common services for use by Azure Mobile Services and Microsoft Azure Tools.
GenerateUnitTest 1.0
Generates unit test code for methods in classes under test.
JetBrains ReSharper Ultimate 2015.1.3 Build 102.0.20150724.141603
JetBrains ReSharper Ultimate package for Microsoft Visual Studio. For more information about ReSharper Ultimate, visit http://www.jetbrains.com/resharper. Copyright © 2015 JetBrains, Inc.
Microsoft Azure Mobile Services Tools 1.4
Microsoft Azure Mobile Services Tools
NuGet Package Manager 3.0.0
NuGet Package Manager in Visual Studio. For more information about NuGet, visit http://docs.nuget.org/.
PreEmptive Analytics Visualizer 1.2
Microsoft Visual Studio extension to visualize aggregated summaries from the PreEmptive Analytics product.
SQL Server Data Tools 14.0.50616.0
Microsoft SQL Server Data Tools
我们尝试了以下方法:
Restarting Visual Studio, and re-opening the solution
Cleaning the solution, and deleting the obj folders.
Recreating the project
Clearing Resharper's Cache
Disabling rich client / hardware graphics acceleration in Options->Environment->General
Disabling Resharper
Deleting all Temporary ASP.Net folders
Deleting the contents of %localappdata%\Microsoft\WebsiteCache
Deleting all *.suo user options files
Uninstalling all extensions (Web compiler, Bundler and Minifier)
Probably some other things that I have forgotten.
运行 右键单击期间的进程监视器显示在 CreateFile/ QueryNetworkOpenInformationFile/CloseFile 序列中处理的每个项目引用 4 次,如下所示:
知道这里发生了什么吗?延迟太长而无法忽略,并且发生在右键单击和上下文菜单中的每个选择中。
我们向 Microsoft 提交支持请求后,发现问题是 Web 应用程序项目中的项目引用损坏
删除引用后,上下文菜单正常运行,没有任何滞后。
我刚刚用不同的方式解决了这个问题。
只需删除以下内容:
C:\Users\ 用户名 \AppData\Local\Microsoft\WebSiteCache
来源:http://www.geocortex.com/about/blog/archive/slow-visual-studio-performance-solved/
我们的一些团队在 Windows 10 Pro 64 位上试用 VS 2015 时遇到了这个问题:
Visual Studio 2013 context menus slow only in web application project
右键单击文件夹(仅在 Web 应用程序项目中的文件夹)时,呈现上下文菜单和任何对话框都会出现长时间延迟。
安装详情:
Microsoft Visual Studio Professional 2015
Version 14.0.23107.0 D14REL
Microsoft .NET Framework
Version 4.6.00079
Installed Version: Professional
Visual Basic 2015 00322-50050-08414-AA353
Microsoft Visual Basic 2015
Visual C# 2015 00322-50050-08414-AA353
Microsoft Visual C# 2015
Visual C++ 2015 00322-50050-08414-AA353
Microsoft Visual C++ 2015
Visual F# 2015 RC 00322-50050-08414-AA353
Microsoft Visual F# 2015 RC
ASP.NET and Web Tools 14.0.20626.0
ASP.NET and Web Tools
ASP.NET Web Frameworks and Tools 2013 5.2.30624.0
For additional information, visit http://www.asp.net/
Common Azure Tools 1.5
Provides common services for use by Azure Mobile Services and Microsoft Azure Tools.
GenerateUnitTest 1.0
Generates unit test code for methods in classes under test.
JetBrains ReSharper Ultimate 2015.1.3 Build 102.0.20150724.141603
JetBrains ReSharper Ultimate package for Microsoft Visual Studio. For more information about ReSharper Ultimate, visit http://www.jetbrains.com/resharper. Copyright © 2015 JetBrains, Inc.
Microsoft Azure Mobile Services Tools 1.4
Microsoft Azure Mobile Services Tools
NuGet Package Manager 3.0.0
NuGet Package Manager in Visual Studio. For more information about NuGet, visit http://docs.nuget.org/.
PreEmptive Analytics Visualizer 1.2
Microsoft Visual Studio extension to visualize aggregated summaries from the PreEmptive Analytics product.
SQL Server Data Tools 14.0.50616.0
Microsoft SQL Server Data Tools
我们尝试了以下方法:
Restarting Visual Studio, and re-opening the solution
Cleaning the solution, and deleting the obj folders.
Recreating the project
Clearing Resharper's Cache
Disabling rich client / hardware graphics acceleration in Options->Environment->General
Disabling Resharper
Deleting all Temporary ASP.Net folders
Deleting the contents of %localappdata%\Microsoft\WebsiteCache
Deleting all *.suo user options files
Uninstalling all extensions (Web compiler, Bundler and Minifier)
Probably some other things that I have forgotten.
运行 右键单击期间的进程监视器显示在 CreateFile/ QueryNetworkOpenInformationFile/CloseFile 序列中处理的每个项目引用 4 次,如下所示:
知道这里发生了什么吗?延迟太长而无法忽略,并且发生在右键单击和上下文菜单中的每个选择中。
我们向 Microsoft 提交支持请求后,发现问题是 Web 应用程序项目中的项目引用损坏
删除引用后,上下文菜单正常运行,没有任何滞后。
我刚刚用不同的方式解决了这个问题。
只需删除以下内容: C:\Users\ 用户名 \AppData\Local\Microsoft\WebSiteCache
来源:http://www.geocortex.com/about/blog/archive/slow-visual-studio-performance-solved/