Microsoft.Unity.Analyzers icon indicating copy to clipboard operation
Microsoft.Unity.Analyzers copied to clipboard

USP0007 failed to suppress CS0649

Open talalmajali opened this issue 4 months ago • 1 comments

Bug description

A clear and concise description of what the bug is.

  • Version of analyzers assembly: 1.25
  • Analyzer rule: USP0007
  • Error (exception message, type, and callstack where applicable):

Hello, i'm running dotnet tools v8.0.414 with Roslynator.Analyzers.4.14.0 and Microsoft.Unity.Analyzers.1.25, when running roslynator analyze with Roslynator and Microsoft.Unity.Analyzers the CS0649 warning is never suppressed for SerializeField, i have the following rule in the .editorconfig dotnet_diagnostic.USP0007.severity = warning also i have already validated that Unity Analyzers are working fine by testing other rules like UNT0001, i keep getting the following message Field 'Foo' is never assigned to, and will always have its default value null, any idea?

talalmajali avatar Sep 22 '25 11:09 talalmajali

Hi @talalmajali,

I've been unable to reproduce this behavior. Could you show some sample code that triggers the issue? Thanks!

jbevain avatar Nov 24 '25 19:11 jbevain