IDE0051 false positive, all private members are shown as unused (light grey font color) #76857
Labels
Area-IDE
Feature - IDE0051
Remove unused private members
untriaged
Issues and PRs which have not yet been triaged by a lead
Version Used: Visual Studio 17.12.4
Steps to Reproduce:
I don't know how to reproduce it. But I can share the following information:
Diagnostic Id:
"IDE0051: Remove unused private member"
Expected Behavior:
Used private members should not be shown as unused.
Actual Behavior:
Used private members show IDE0051 and are shown in light grey font color.
Sometimes the problem automatically fixes itself when I stop debugging.
It always fixes itself when I hit F6 to compile the solution.
As you can see in this screenshot, it even shows the reference above the member, but still shows IDE0051:
The text was updated successfully, but these errors were encountered: