更新时间:2022-11-02 16:29:45
如果安装了Resharper(插件),则可以访问一项功能,该功能允许您通过 Solution Explorer>(右键单击)引用来分析使用过的引用. >优化参考...
http://www.jetbrains.com/resharper/webhelp/Refactorings__Remove_Unused_References.html >
此功能无法正确处理:
I just wondered if it possible within various Visual Studio versions to automatically remove all references from a project that were never been used?
In your answer, please specify which version of VS the solution applies to.
If you have Resharper (plugin) installed, you can access a feature that allows you to analyze used references via Solution Explorer > (right click) References > Optimize References...
http://www.jetbrains.com/resharper/webhelp/Refactorings__Remove_Unused_References.html
This feature does not correctly handle: