Replies: 1 comment
-
|
Hi! 👋 What you’re seeing is actually a known quirk with IDE0005 when it comes to global using aliases.
So in short:
Reference: IDE0005 docs Hope that help! |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I have a shared cs file where I use
global using foo = foo4entries.These are used for versioned JSON serialization classes, and I "typedef" the generic name to the latest version of the schema.
I share this .cs file across projects.
In this file:
dotnet format --verify-no-changes --severity=info --verbosity=detailedreportsIDE0005: Using directive is unnecessary.for the second entry, not the first, and removing the second entry breaks compilation.I looked at IDE0005 docs, did not see anything of interest.
Is this something I can fix, or is it a bug?
Beta Was this translation helpful? Give feedback.
All reactions