如何在 Visual Studio 2015 中关闭解决方案范围的分析? [英] How to switch off solution wide analysis in Visual Studio 2015?

查看:80
本文介绍了如何在 Visual Studio 2015 中关闭解决方案范围的分析?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在我同事的 PC 上,Visual Studio 2015 有时会显示一条消息:

<块引用>

检测到内存不足.解决方案范围的分析已关闭.

显示此消息后,一切都变得更快了.

如何手动关闭此分析?

是的,我使用 Resharper 但这不是我想要的.代码分析也不是正确的选择.VS 2015 使用 Roslyn 在后台不断地编译解决方案并使用各种分析器,几乎和 Resharper 一样.但我使用 Resharper,所以我想关闭 Roslyn 的所有背景调查.

解决方案

要在 Visual Studio 2015 中禁用完整解决方案分析,请转到工具 -> 选项 -> 文本编辑器 -> C# -> 高级,然后取消选中启用完整解决方案"解决方案分析"复选框.

注意安装

On the PC of my collegue Visual Studio 2015 displays a message sometimes:

Low memory detected. Solution wide analysis is switched off.

And after this message is displayed everything is a lot faster.

How can I turn this analysis off manually?

Edit: Yes, I use Resharper but this is not what I want. And Code Analysis is also not the correct option. VS 2015 uses Roslyn to compile the Solution constantly in the background and uses all kinds of Analysers, almost like Resharper. But I use Resharper so I would like to turn off all background checks of Roslyn.

解决方案

To disable full solution analysis in Visual Studio 2015, go to Tools -> Options -> Text Editor -> C# -> Advanced, and uncheck the "Enable full solution analysis" checkbox.

Note that after installing the latest version of VS2015 Update 2, this settings is now disabled by default.

这篇关于如何在 Visual Studio 2015 中关闭解决方案范围的分析?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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