如何在Visual Studio 2017中禁用实时代码分析?
我在哪里可以禁用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:
我已遵循此来自Microsoft的支持文档,但是取消选中启用完整解决方案分析似乎对实时代码分析没有影响。然后我发现适用于Visual Studio 2012的解决方案,但也没有运气。
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?
在VS2017中是不可能的
仅在扩展和更新中所有Roslyn安装的组件被禁用的情况下。
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:
工具->选项->文字编辑器-> C#(以我为例)->进阶-> 在外部过程中进行编辑器功能分析(实验)->选择并保存。
Tools -> Options -> Text Editor -> C# (in my case) -> Advanced -> Perform editor feature analysis in external process (experimental) -> select it and save.
有关已解决问题的更多详细信息(解决方案适用于VS2019):如何在Visual Studio 2017中禁用实时代码编译/分析?
More details on closed issue (solution is for VS2019):How to disable live code compilation/analysis in Visual Studio 2017?