You can accomplish this using Resharper 2018.1.
Right-click on the project> Refactoring> Delete Unused Links.
If your project is small, you can also> Analyze used links. ,,
A window will appear. Select all links and delete all of them. Then go back and add those again that give you a compiler error.
nfgallimore Jun 14 '18 at 15:32 2018-06-14 15:32
source share