有没有一种简单的方法来找到我的.NET项目未使用的程序集引用?到我、来找、简单、程序

2023-09-05 00:02:23 作者:到头来不过是一场梦

可能重复:   工具发现未使用的引用

Possible Duplicate: Tools for finding unused references

我继承了一个棕地项目,我在重构code,以支持新的需求的过程。中集引用的数量已经相当一段时间了,我想知道如果不再使用任何引用。什么是这一点的最好办法比下降参考,并试图重新编译code等

I inherited a brownfield project and am in the process of refactoring the code to support new requirements. The number of assembly references has grown considerably over time, and I would like to know if any references are no longer being used. What is the best approach to this other than dropping the reference and trying to re-compile the code.

推荐答案

您可以使用 ReSharper的做到这一点由JetBrains公司。

只需右键点击一个基准,并选择查​​找相关code。它会搜索项目,并告诉你到底是什么引用程序集。

Just right click on a reference, and choose "Find Dependent Code". It will search the project and tell you exactly what is referencing an assembly.

 
精彩推荐
图片推荐