Please up-vote to fix data portal methods being faded out - IDE0051 #4324
Replies: 4 comments 5 replies
-
It looks like they closed that issue as a duplicate. The related issue is here: https://developercommunity.visualstudio.com/t/Private-Unity-messages-incorrectly-marke/10779025 |
Beta Was this translation helpful? Give feedback.
-
This is one part of a bigger problem, which includes how VS grays out text, but also how AOT works. I have some thoughts on a solution. |
Beta Was this translation helpful? Give feedback.
-
Chris Wang (MSFT) recommended to add this to editorconfig file I tried and it works but did I break something else? :) |
Beta Was this translation helpful? Give feedback.
-
@Chicagoan2016, I think the easiest fix for now is to set up a // This file is used by Code Analysis to maintain SuppressMessage
// attributes that are applied to this project.
// Project-level suppressions either have no target or are given
// a specific target and scoped to a namespace, type, member, etc.
using System.Diagnostics.CodeAnalysis;
[assembly: SuppressMessage("Style", "IDE0051:Remove unused private members")]
|
Beta Was this translation helpful? Give feedback.
-
In a recent Visual Studio update, our beloved data portal methods are being faded out because of
IDE0051 Private member '[method name]' is unused
. Microsoft has not provided an option to disable this "feature".Would you mind taking a moment to up-vote this issue on the Developer Community so we get this prioritised:
https://developercommunity.visualstudio.com/t/unused-private-member-IDE0051-fading-e/10781612
Beta Was this translation helpful? Give feedback.
All reactions