简体   繁体   English

如何在vb.net项目中查找未使用的库

[英]How to find unused libraries in vb.net project

I'm new to VB. 我是VB新手。 I've assigned to the project is to be clean by removing unused references and unused libraries. 我已分配给该项目的方法是清除未使用的引用和未使用的库。 As I'm new to this project I don't understand how the code written by previous developers. 由于我是这个项目的新手,所以我不了解以前的开发人员编写的代码。 I understand that I can find unused references using Visual studio. 我了解可以使用Visual Studio查找未使用的引用。 For getting Unused libraries I don't see any option in Visual studio. 为了获得未使用的库,我在Visual Studio中看不到任何选项。 I did research on the internet and I don't find any useful information regarding unused Libraries in the project. 我曾在互联网上进行过研究,但没有找到有关该项目中未使用的图书馆的任何有用信息。 Can anyone help on in this. 任何人都可以帮忙。

Thanks in advance. 提前致谢。

Excerpt from this article How to: Remove Unused References (Visual Basic) : 本文摘录如何:删除未使用的引用(Visual Basic)

To remove unused references 删除未使用的引用

  1. In Solution Explorer , double-click the My Project node for the project. 在“ 解决方案资源管理器”中 ,双击项目的“ 我的项目”节点。

    In the Project Designer , click the References tab. 项目设计器中 ,单击“ 引用”选项卡。

  2. Click the Unused references button to open the Unused References dialog box. 单击“ 未使用的引用”按钮以打开“ 未使用的引用”对话框。

    The project is scanned, and the dialog box is populated with a list of references that are not being referenced in your code. 扫描项目,并在对话框中填充未在代码中引用的引用列表。

  3. In the Unused References dialog box, check the references that you wish to remove, and then click Remove . 在“ 未使用的引用”对话框中,选中要删除的引用,然后单击“ 删除”

    The selected references will be removed from the project. 选定的引用将从项目中删除。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM