Search code examples
visual-studio-2017code-analysis

How can I disable live code analysis in Visual Studio 2017?


Where can I disable live code analysis in Visual Studio 2017? This pops up every time I start my solution. I do not need this:

Live code analysis pop-up picture

I've followed this support document from Microsoft but unchecking "Enable full solution analysis" seems to have no effect on live code analysis. Then I found a solution for Visual Studio 2012 but also without any luck.

So it seems to me that live code analysis is a complete different thing not managed by full solution analysis. It is running immediately as a background process task after (re)starting the solution. Anyway, how can I get rid of this?


Solution

  • It's not possible In VS2017

    only if all Roslyn installed components in Extensions and Updates are disabled.

    I'm using a workaround, global setting forces analyses runs at build on solution projects, in editor runs at any change but now editor is a lot faster with bellow workaround:

    Tools -> Options -> Text Editor -> C# (in my case) -> Advanced -> Perform editor feature analysis in external process (experimental) -> select it and save.

    UPDATE: It's possible in VS2019 16.5

    More details on closed issue (solution is for VS2019):How to disable live code compilation/analysis in Visual Studio 2017?