Version Used:
Microsoft (R) Visual C# Compiler version 3.6.0-4.20251.5 (910223b)
Steps to Reproduce:
- Add CA rules to .editorconfig file
- Add line "# dotnet_diagnostic.severity = error" to the .editorconfig file
- Run code analysis in Visual Studio 2019 IDE (will need at least one analyzer rule failure)
- In the Error List, right click on a rule failure and set severity for the rule to a different severity level
Expected Behavior:
New rule entry is added to .editorconfig file.
Actual Behavior:
Dialog box error as follows, and no change to the .editorconfig file:
. ---------------------------
. Microsoft Visual Studio
. ---------------------------
. Length cannot be less than zero.
.
. Parameter name: length
. ---------------------------
. OK
. ---------------------------