Global usings are marked unnecessary 'using' (C# 10)

When using global usings (C# 10) in a seperate file, they are maked as unnecessary ‘using’.
How can I remove this from my report?

Hello @hvkooten and welcome to our community.

First of all sorry for the slow reply.
We are aware of this false positive and are planning to fix it in the near future, however I cannot provide you an ETA for it.
For the time being you have 4 options to get rid of the issues:

  • Mark the issues as False positives
  • Use #pragma warning disable in the files where you have the global usings.
  • Use .editorconfig to disable the rule for just these files.
  • Disable the rule completely until the FP gets fixed

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.