c# - 如何在 Visual Studio 2017 中禁用 Roslyn 语言服务?

标签 c# visual-studio-2017 roslyn

我刚刚安装了新版本的 Visual Studio 2017 v15.8。我的应用程序中有 8 个项目。当我尝试打开解决方案时,需要 1 分钟(在旧版本中,需要 5-10 秒)。根据我的研究,我尝试通过 3 种不同的技术来解决这个问题,但没有一种解决了我的问题。

  1. 在“管理 Visual Studio 性能”中,我尝试禁用 Roslyn 语言服务,但禁用按钮被禁用。我的意思是禁用按钮是灰色的。所以它没有用。
  2. 在“工具”->“选项”->“文本编辑器”->“C#”->“高级”中,有一个名为“启用完整解决方案分析”的复选框。试图取消选中它,但它已经被取消选中。所以我尝试选中并再次取消选中,但它没有'工作。
  3. 在工具 -> 选项 -> 文本编辑器 -> 所有语言 -> CodeLens 中,有一个名为“启用 CodeLens”的复选框。我取消选中它,但我的问题仍然存在。

那么如何在 Visual Studio 2017 中禁用 Roslyn 语言服务?还是有另一种我不必禁用它的方法?

最佳答案

来自 the Visual Studio Developer Community :

The Roslyn Language Service is an essential service to VB & C# and cannot be disabled. The message is simply warning you that the service is taking longer than usual, so if you are experiencing performance problems, you can upload traces for us to investigate at that point via the feedback mechanism.

看来禁用 RLS 实际上会使您的 IDE 像记事本一样。 Microsoft 不允许您禁用它。您可以尝试重现并修复问题。

关于c# - 如何在 Visual Studio 2017 中禁用 Roslyn 语言服务?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/53004319/

相关文章:

c# - 在WiX安装中从C#自定义操作调用PowerShell命令

时间:2019-01-17 标签:c#mat2gray(matlab)function

html - Visual Studio 代码 CSS 错误 "Do not use empty rulesets"

debugging - 在 VS2017 中调试 Aurelia webpack typescript 应用程序

roslyn - 来自 Roslyn 的扩展方法信息

c# - Roslyn 的 GetTypeByMetadataName() 和通用类型

c# - 提取类信息

c# - ObjectContext 实例已被释放,不能再用于需要连接的操作。 WCF 出现 azure 错误

c# - 在 MVC 5 中读取和使用 appsettings.json 中的设置

git - 使用团队资源管理器中的 Git 存储库将现有项目添加到 Visual Studio 2017 解决方案中的源代码管理