dotnet/roslyn

Configure or supress issue adds editorconfig file link to different project

开放

#40,955 创建于 2020年1月14日

 (0 条评论) (0 个反应) (0 位负责人)C# (4,257 个派生)batch import
Area-IDEBugFeature - Editor ConfigIDE-CodeStylehelp wanted

仓库指标

星标
 (20,414 个星标)
PR 合并指标
 (平均合并 6天 17小时) (30 天内合并 256 个 PR)

描述

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.

贡献者指南