[MeansImplicitUse] and <PackageReference />

Hi,

I have a package I've published to NuGet. It has some attributes. I've marked those attributes with [MeansImplicitUse]. Within the solution where the package is defined, the [MeansImplicitUse] attribute does what it should - prevent ReSharper from detecting classes marked with my custom attribute as unused. However, when I pull that exact same attribute in through a package reference instead of a project reference, there's nothing I can do to get ReSharper to accept that the annotated classes are used implicitly. I mean, I can still use [UsedImplicitly], but there's nothing I can do to get it to infer implicit use from my custom attribute.

Has anyone run into this? Is there anyone who can explain it?

0

Please sign in to leave a comment.