如何在 Visual Studio 2017 中禁用实时代码分析? [英] How can I disable live code analysis in 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?
这篇关于如何在 Visual Studio 2017 中禁用实时代码分析?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!