就是将下图中的Create and assign field 'memcachedClient'
改为 Create and assign field '_memcachedClient'
在解决方案文件夹中添加包含下面内容的 .editorconfig 文件
root = true
[*.cs]
dotnet_naming_rule.camel_case_for_private_internal_fields.severity = suggestion
dotnet_naming_rule.camel_case_for_private_internal_fields.symbols = private_internal_fields
dotnet_naming_rule.camel_case_for_private_internal_fields.style = camel_case_underscore_style
dotnet_naming_symbols.private_internal_fields.applicable_kinds = field
dotnet_naming_symbols.private_internal_fields.applicable_accessibilities = private, internal
dotnet_naming_style.camel_case_underscore_style.required_prefix = _
dotnet_naming_style.camel_case_underscore_style.capitalization = camel_case
可以通过 dotnet new editorconfig
命令创建 .editorconfig 文件