visual-studio-2017 - 如何避免在 Visual Studio 2017 15.9.13 中添加此或我的资格问题
问题描述
我们如何解决以下错误。相同的代码在以前的 Visual Studio 版本中没有任何错误。只有在升级后我才收到此错误。不可能将“this”添加到整个大解决方案的所有属性中。因此,我们是否可以轻松避免此错误。
解决方案
对编辑器配置文件进行了更改,它开始工作。
# 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
推荐阅读
- javascript - 判断一个 DOM 节点是否可见
- swift - 嵌入在容器视图中的 pageViewController 的视图缩放问题
- mysql - 带有 SELECT 和 UNION 的 Mysql LOOP
- javascript - 我需要将参数从外部函数传递给内部函数
- excel - 如何在日期之间将数据拉到新工作表并在单元格中搜索字符串/值,并且只打印具有指定字符串的行
- css - 将悬停/焦点效果添加到 GridView 表可排序标题
- tableau-api - 如何在 Tableau 中获取唯一 ID 的唯一一次的 COUNT 值
- python-3.x - 如何找到靠近kmeans集群中心的文本
- ios - 无法转换“UITableViewController”类型的值
- javascript - 从 HTML div 结构创建多维 JSON 结构