如何在Visual Studio 2017中禁用实时代码分析? [英] How can I disable live code analysis in Visual Studio 2017?

查看:438
本文介绍了如何在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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆