有没有一种简单的方法来找到我的.NET项目未使用的程序集引用? [英] Is there an easy way to find unused assembly references in my .NET project?

查看:152
本文介绍了有没有一种简单的方法来找到我的.NET项目未使用的程序集引用?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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

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.

这篇关于有没有一种简单的方法来找到我的.NET项目未使用的程序集引用?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆