本文介绍了Visual Studio 2015中的慢速上下文菜单,位于Web项目中的右键单击文件夹中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述 29岁程序员,3月因学历无情被辞! 我们的一些团队在Windows 10 Pro 64位上试用VS 2015会遇到这个问题:Some of our team who are trialing VS 2015 on Windows 10 Pro 64 bit are seeing this issue: Visual Studio 2013上下文菜单仅在Web应用程序项目中缓慢右键单击文件夹(仅限Web应用程序项目中的文件夹)时,渲染上下文菜单以及任何对话框都会有很长的延迟。When right-clicking a folder (only a folder in a web app project) there is a lengthy delay in rendering the context menu, as well as any dialogs.安装细节:Microsoft Visual Studio Professional 2015Version 14.0.23107.0 D14RELMicrosoft .NET FrameworkVersion 4.6.00079Installed Version: ProfessionalVisual Basic 2015 00322-50050-08414-AA353Microsoft Visual Basic 2015Visual C# 2015 00322-50050-08414-AA353Microsoft Visual C# 2015Visual C++ 2015 00322-50050-08414-AA353Microsoft Visual C++ 2015Visual F# 2015 RC 00322-50050-08414-AA353Microsoft Visual F# 2015 RCASP.NET and Web Tools 14.0.20626.0ASP.NET and Web ToolsASP.NET Web Frameworks and Tools 2013 5.2.30624.0For additional information, visit http://www.asp.net/Common Azure Tools 1.5Provides common services for use by Azure Mobile Services and Microsoft Azure Tools.GenerateUnitTest 1.0Generates unit test code for methods in classes under test.JetBrains ReSharper Ultimate 2015.1.3 Build 102.0.20150724.141603JetBrains 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.4Microsoft Azure Mobile Services ToolsNuGet Package Manager 3.0.0NuGet Package Manager in Visual Studio. For more information about NuGet, visit http://docs.nuget.org/.PreEmptive Analytics Visualizer 1.2Microsoft Visual Studio extension to visualize aggregated summaries from the PreEmptive Analytics product.SQL Server Data Tools 14.0.50616.0Microsoft SQL Server Data Tools我们尝试了以下方法:Restarting Visual Studio, and re-opening the solutionCleaning the solution, and deleting the obj folders.Recreating the projectClearing Resharper's CacheDisabling rich client / hardware graphics acceleration in Options->Environment->GeneralDisabling ResharperDeleting all Temporary ASP.Net foldersDeleting the contents of %localappdata%\Microsoft\WebsiteCacheDeleting all *.suo user options filesUninstalling all extensions (Web compiler, Bundler and Minifier)Probably some other things that I have forgotten.右键单击期间运行进程监视器显示在CreateFile / QueryNetworkOpenInformationFile / CloseFile序列中处理的每个项目引用4次,如下:Running process monitor during a right click shows every project reference being processed in a CreateFile/ QueryNetworkOpenInformationFile/CloseFile sequence 4 times, like this:任何想法这里发生了什么?延迟太长而无法忽略,并且右键单击和上下文菜单中的每个选择都会发生。Any ideas what is happening here ? The delay is too long to ignore and occurs for the right click and every selection from the context menu.推荐答案在我们向Microsoft提交支持请求后,事实证明问题是Web应用程序项目中的项目引用已损坏After we submitted a support request to Microsoft, it turns out the issue was a broken project reference in the Web application project删除引用后,上下文菜单表现正常,没有任何延迟。After removing the reference, the context menus behave normally, without any lag. 这篇关于Visual Studio 2015中的慢速上下文菜单,位于Web项目中的右键单击文件夹中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持! 上岸,阿里云! 08-06 12:34