简体   繁体   English

如何查看从哪个dll导入命名空间?

[英]How do I see which dll a namespace is being imported from?

I have an MVC 2 page. 我有一个MVC 2页面。 In it there is a declaration at the top... 其中有一个顶部的声明......

<%@ Import Namespace="EDF.ESCS.CAFE.AppSDK.Web.Mvc.Html" %>

I want to investigate this namespace. 我想调查这个命名空间。 I looked at the references in the project and its not obvious which reference because they have different names. 我查看了项目中的引用,并且它们的引用并不明显,因为它们有不同的名称。

I want to find out which dll this is coming from? 我想知道它来自哪个dll? But how can I do this in visual studio? 但是我怎么能在visual studio中做到这一点?

I have got re-sharper but I would prefer to use just visual studio so I know for next time... 我已经重新锐利但我宁愿只使用视觉工作室所以我知道下次...

There's not a one-to-one relationship between namespaces and references. 命名空间和引用之间没有一对一的关系。 Types under the same namespace may span over several assemblies. 同一名称空间下的类型可能跨越多个程序集。

If you use Visual Studio's object browser (Ctrl+Alt+J), you can view all the referenced types, either by namespace or reference. 如果使用Visual Studio的对象浏览器(Ctrl + Alt + J),则可以通过命名空间或引用查看所有引用的类型。 If you view by namespace, select a type within a namespace, then view by container, it'll bring you to the reference which contains it. 如果按名称空间查看,在名称空间中选择一个类型,然后按容器查看,它将带您到包含它的引用。

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

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