没有ReSharper的删除C#项目未使用的引用(!= usings)? [英] Remove unused references (!= usings) in C# project without Resharper?

查看:902
本文介绍了没有ReSharper的删除C#项目未使用的引用(!= usings)?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有没有删除未使用的引用程序集,在C#项目,没有ReSharper的的帮助的方法吗?该 MSDN文档的确勾勒出东西的Visual Basic ,但我找不到找不到的C#一样的对话框。

Is there any way of removing unused references to assemblies, in a C# project, without the help of Resharper? The MSDN documentation does outline something for Visual Basic, but I couldn't find the same dialogs for C#.

推荐答案

有是在Visual Studio的支持没有编译找到一个C#项目未使用的程序集的引用。

There is no build in support in Visual Studio to find unused assembly references in a C# project.

一个解决方法是,删除未使用的可能装配,编译项目,看看它是否成功编译。如果在汇入作业的情况下被删除未使用的组件。否则取出的装配是必要的,它应该再次添加

A workaround is, to remove a possible unused assembly, compile the project and look if it compiles successfully. If it´s the case an unused assembly was removed. Otherwise the removed assembly was necessary and it should be added again.

要检查组件被其他组件中使用的可以使用的 NDepend的

To check what assemblies are used by other assemblies you can use NDepend.

这篇关于没有ReSharper的删除C#项目未使用的引用(!= usings)?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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