如何找到解决方案中的所有引用(因此是所有项目)? [英] How to find all references in a solution (thus of all projects)?

查看:162
本文介绍了如何找到解决方案中的所有引用(因此是所有项目)?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们有一个很大的解决方案,其中包含许多项目.一些项目引用相同的DLL,我需要替换一个DLL.有没有办法查看整个解决方案中的哪些引用,因此我不必一一遍遍每个项目?

We have a big solution with a lot of projects in it. Some projects reference the same DLL's and I need to replace one DLL. Is there a way to see which references are in the entire solution so I don't have to go over each project one by one?

我想查看解决方案范围内的参考,而不是每个项目.有可能吗?

I want to see the solution-wide references, not per-project. Is it possible?

推荐答案

仅需进一步扩展Juozas答案,您就可以使用大多数现代的文本编辑器来查找/替换.例如在Notepad ++中,使用Find-in-Files(Ctrl-Shift-F)

Just to expand a little further on Juozas answer, you can use most modern Text editors to find/replace. For example in Notepad++ use Find-in-Files (Ctrl-Shift-F)

注意,由于参考文献有时会包含其他信息,例如

Notice I left the end quote off the search as sometimes the Reference will include additional info, eg

参考Include ="System.Web.Mvc,版本= 2.0.0.0,文化=

Reference Include="System.Web.Mvc, Version=2.0.0.0, Culture=

不使用双引号可能会给您带来误报(例如,在我的示例中,它包含对System.DataSystem.Data.DataSetExtensions

Leaving off the end double quote may then give you false positive (as in my example it includes refs to System.Data and System.Data.DataSetExtensions

这篇关于如何找到解决方案中的所有引用(因此是所有项目)?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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