I have been experimenting a lot inside a solution containing only .NET Core 3.1 projects, and I noticed that there was a lot of unnecessary/unused code as a result.
Is there a way to list all the code inside my solution that isn't referenced anywhere else?
I'm aware that Visual Studio 2019 has the CodeLens feature that shows if a piece of code is referenced, but checking it for every single file manually is obviously not what I'm going for.
In existing answers for older versions of Visual Studio, the FxCop tool is mentioned a lot but as you can see on the Microsoft Page, it's no longer being updated. I also tried to run Code Analysis on my solution, but since I couldn't configure the analysis parameters for my solution, that didn't lead anywhere either. I even tried to configure code analysis on the project level, but Visual Studio didn't recognize my project as a candidate for analysis.