CA1812 false report even when the class is initialized in xaml #4691
Labels
Area-Microsoft.CodeAnalysis.NetAnalyzers
False_Positive
A diagnostic is reported for non-problematic case
Resolution-Duplicate
Milestone
Warning CA1812 XXX is an internal class that is apparently never instantiated. If so, remove the code from the assembly. If this class is intended to contain only static members, make it static (Shared in Visual Basic).
.Net Core 3.1
VS 2019 Enterprise
The warning pops up even when the class is initialized in the xaml. In this specific case, it was a class implementing IValueConverter that is referred in app.xaml and named
Expected Behavior
The analysis should be able to look at xaml for references before popping up the warning
The text was updated successfully, but these errors were encountered: