Our organisation uses a ruleset file containing our organisation's StyleCop.Analyzers settings. This lives in source control, and all projects in all solutions in our organisation reference this file. If I edit the ruleset (via project properties -> Code Analysis tab), I see a message prompting me to migrate the ruleset to an editorconfig file. Can someone explain why I would want to do this, and what the difference is between the two?
I've also noticed in VS Tools->Options->Text Editor->C#->Code Style, there are a number of settings eerily similar to many of the StyleCop.Analyzers rules (e.g. several settings relating to the use of "this", vs StyleCop SA1101 "prefix local calls with this"). There is also a button here to create an editorconfig file from these settings, so how would these settings co-exist with the StyleCop.Analyzer settings, and which would take precedence?
Also, our Azure DevOps automated builds report warnings where any code "violates" the StyleCop rules. Will the builds still do this if we replaced the ruleset with an editorconfig file?
Lastly, there is a GUI for editing the StyleCop.Analyzer settings (project properties -> Code Analysis tab -> "Configure" button), whereas editorconfig files seem to be edited using the VS text editor. Given that there are hundreds of rules to manage, where would you get a complete list of rules that needed to be typed in? And wouldn't this be very tedious?


