简体   繁体   中英

How to Disable Roslyn Language Services in Visual Studio 2017?

I have just installed new version of Visual Studio 2017 v15.8. There are 8 project in my application. When I try to open the solution, it takes 1 minutes(in older versions, it was taking 5-10 seconds). I tried to solve this problem by 3 different techniques according to my research but none of them solved my problem.

  1. In "Manage Visual Studio Performance", I tried to disable Roslyn Language Service, but the disable button is disabled. I mean the disable button is gray. So it didn't work.
  2. In Tools -> Options -> Text Editor -> C# -> Advanced, there is a checkbox named "Enable full solution analysis. Tried to uncheck this but it was already unchecked. So I tried checking and again unchecking but it didn't work.
  3. In Tools -> Options -> Text Editor -> All Languages -> CodeLens, there is a checkbox named "Enable CodeLens". I unchecked this but my problem still exists.

So how can I disable Roslyn Language Services in Visual Studio 2017? Or is there another way that I dont have to disable it?

From 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.

So it seems that disabling the RLS, will actually make your IDE like Notepad. Microsoft doesn't allow you to disable it. You can try to get the problem reproduced and fixed.

Did you try the solution in https://developercommunity.visualstudio.com/content/problem/320800/vs-1581-project-load-and-file-access-very-slow.html ?

I don't think it is because of Roslyn Language Service. Additionally, according to that link, you can upgrade your Visual Studio 2017 version to 15.8.7 or higher. It will probably solve your problem.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM