Using Resharper, we can right-click the "Links" link for the project and select "Optimize Links". It shows class libraries that are not used or not required by the compiler.
I have a class library that should only be used as a reference (you never need to use code). The DLL is configured to enter itself at startup while it is part of the links. In case you are wondering why this was ever done, it handles errors not found for ASP.NET MVC projects ( Nuget package page ).
Is there any possible way that I can tell Resharper that this link is either part of the compiler required, or part of the links used? I just want to try and prevent the developers from deleting my DLL in case of an accident.
source share