我可以按参考名称搜索解决方案,以查看它在哪些项目中被引用吗? [英] Can I search by a reference name, solution-wise, to see in which projects it was referenced?
问题描述
是否有可能搜索整个解决方案以查看特定参考的用法?
Is there any possibiliy to searh the whole solution to see a particular refrence's usage?
比方说,我可以在哪些项目中看到引用了Xyxyxyxy.dll"?
Let's say, can I see in what projects the reference "Xyxyxyxy.dll" is referenced?
(基于 ReSharper 的答案也是可以接受的!:) )
(ReSharper based answers are also acceptable! :) )
谢谢!
推荐答案
您可以通过 notepad++
轻松完成此操作,只需提供解决方案目录和 *.csproj
作为过滤器,即在 csproj
文件中搜索引用.
You can do this through notepad++
quite easily by giving the solution directory and *.csproj
as the filter i.e. searching the csproj
files for the references.
如果要搜索 GAC 程序集引用,请搜索以下字符串
In case you want to search for GAC assembly references, search for the following string
其中 System.Data
是程序集名称
<Reference Include="System.Data" />
where System.Data
is the assembly name
如果您想搜索非 GAC 引用的程序集,请搜索以下字符串
In case you want to search for a non GAC referenced assembly then search for the following string
这篇关于我可以按参考名称搜索解决方案,以查看它在哪些项目中被引用吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!