[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?
Please sign in to leave a comment.
Hello Max, I see that, among other things, you’ve created an issue in our bug tracker. Further investigation will take place there. So I’ll leave the link here just in case someone else runs into a similar problem: RSRP-501122 [MeansImplicitUse] does not appear to work with package references. Thank you!