Solution wide analysis of class libraries

 I use resharpers solution analysis to find code issues and most importantly unused code regularly and it mostly works great. But one thing I can't get to work as I would like is when using it on projects/solutions that are class libraries where a lot of the classes are unused in the current solution but instead consumed in other applications. I've been looking for some feature of Resharpers analysis that would allow you to tell Resharper that this is a class library and ignore unused public classes and members.

Does anyone know if such a feature is available that I have missed?

With regards
Henrik

0
2 comments

I usually use the code annotations PublicAPIAttribute to annotate members which are part of the assembly's public API surface. There's also the UsedImplicitlyAttribute, which has a very similar effect.

I don't think there's a way to apply them to an entire project, though.

0

Hello Henrik!

 

Feel free to comment or vote for corresponding issue - https://youtrack.jetbrains.com/issue/RSRP-464679

Thank you,

0

Please sign in to leave a comment.