首页 > 解决方案 > 如何避免在 Visual Studio 2017 15.9.13 中添加此或我的资格问题

问题描述

我们如何解决以下错误。相同的代码在以前的 Visual Studio 版本中没有任何错误。只有在升级后我才收到此错误。不可能将“this”添加到整个大解决方案的所有属性中。因此,我们是否可以轻松避免此错误。

在此处输入图像描述

标签: visual-studio-2017

解决方案


对编辑器配置文件进行了更改,它开始工作。

# Remove the line below if you want to inherit .editorconfig settings from higher 
directories
root = true

# C# files
[*.cs]

# this. and Me. preferences
dotnet_style_qualification_for_field = false:silent
dotnet_style_qualification_for_property = false:silent
dotnet_style_qualification_for_method = false:silent
dotnet_style_qualification_for_event = false:silent

推荐阅读