dotnet/roslyn

Configure or supress issue adds editorconfig file link to different project

Offen

#40.955 geöffnet am 14.01.2020

 (0 Kommentare) (0 Reaktionen) (0 zugewiesene Personen)C# (4.257 Forks)batch import
Area-IDEBugFeature - Editor ConfigIDE-CodeStylehelp wanted

Repository-Metriken

Stars
 (20.414 Sterne)
PR-Merge-Metriken
 (Durchschn. Merge 6T 17h) (256 gemergte PRs in 30 T)

Beschreibung

Version Used: VS Win 16.4.2

Steps to Reproduce:

  1. Create a solution with two .NET Framework class libraries called ProjectA and ProjectB.

  2. In Class1.cs of ProjectB add some code inside a Class1 constructor:

    public Class1() { int abc = 0; }

  3. Right click abc and select Quick Actions and Refactorings - Configure or Suppress issues - Configure CS0219 severity - Error.

Expected Behavior:

.editorconfig file link is added to ProjectB.

Actual Behavior:

.editorconfig file link is added to ProjectA.

Not sure if this is by design. It was confusing to me since I was expecting it to be added to the same project where the Class1.cs file was being worked on.

Contributor Guide