简体   繁体   中英

Roslyn Code Analysis: Visual Editing of Rules possible?

If I understand correctly, there are two kinds of code analysis available for C# Visual Studio projects:

  1. The old legacy analyzers (not available for .NET Core and .NET Standard)
  2. Roslyn Code Analyzers

The old legacy analyzers used.ruleset files to configure warnings, errors and suppresions. Visual Studio came with a nice visual interface to edit those ruleset files: 视觉规则集配置

The.ruleset file format seems to be deprecated in Roslyn in favour of.editorconfig. Unfortunately, this means the nice visual editor is not available anymore.

Is there any way to get a similar visual interface for.editorconfig files?

The C# compiler can use both .ruleset and .editorconfig .

And Visual Studio 2022 has an editor for .editorconfig

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM