如何找到解决方案中的所有引用(因此是所有项目)?

问题描述:

我们有一个很大的解决方案,其中包含许多项目.一些项目引用相同的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