You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a shared cs file where I use global using foo = foo4 entries.
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:
// Current schema version is v4globalusingConfigFileJsonSchema=PlexCleaner.ConfigFileJsonSchema4;// Current schema version is v4// TODO: info IDE0005: Using directive is unnecessary.globalusingSidecarFileJsonSchema=PlexCleaner.SidecarFileJsonSchema4;
dotnet format --verify-no-changes --severity=info --verbosity=detailed reports IDE0005: 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.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
I have a shared cs file where I use
global using foo = foo4
entries.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=detailed
reportsIDE0005: 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