如何查找 .NET 命名空间的程序集名称,例如 Microsoft.WindowsAzure.ServiceRuntime [英] How to find an assembly name for a .NET namespace, for example, Microsoft.WindowsAzure.ServiceRuntime

查看:25
本文介绍了如何查找 .NET 命名空间的程序集名称,例如 Microsoft.WindowsAzure.ServiceRuntime的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个通用问题和具体示例.根据 Stack Overflow 上关于命名空间程序集的所有类似问题,这应该很容易.最常见的答案在问题我如何知道导入特定 .NET 命名空间要包含哪些引用?.

I have a generic question, and specific example. This should be easy according to all the similar questions on Stack Overflow regarding assemblies for namespaces. The most common answer is found in question How do I know what reference to include to import a specific .NET namespace?.

所有 MSDN 文档页面都提到了命名空间和程序集."

"All MSDN doc pages mention namespace and assembly."

但是在这个 MSDN 页面上没有提到程序集.我错过了什么明显的东西?

However on this MSDN page there is no mention of the assembly. What obvious thing am I missing?

Microsoft.WindowsAzure.ServiceRuntime 命名空间

修订:

更具体地说,我正在寻找要包含在 Azure 类 RoleEnvironment 中的 DLL 文件.当我点击 F1 并查看其 MSDN 页面时 MSDN RoleEnvironment,它提到了 Microsoft.WindowsAzure.ServiceRuntime 命名空间,但没有要包含的程序集.我以前遇到过这样的事情,所以我想我会把它作为一个通用的问题.虽然我确实想知道要引用的具体 DLL 文件,但我也想知道答案,以便我知道下次遇到这种情况时该怎么办.

More specifically I'm looking for the DLL file to include for the Azure class RoleEnvironment. When I hit F1 and look on its MSDN page MSDN RoleEnvironment, it mentions the Microsoft.WindowsAzure.ServiceRuntime Namespace, but no assembly to include. I've run into things like this before, so I thought I would make it a generic question. Although I do want to know the specific DLL file to reference, I ALSO want to know the answer so I know what to do next time I face this situation.

推荐答案

命名空间没有程序集.一个命名空间可以(并且经常是)在多个程序集中.但特定类型在特定程序集中.因此,如果您查看您感兴趣的命名空间中某个类型的文档,您将看到该类型在哪个程序集中.

Namespaces don't have assemblies. One namespace can be (and often is) in several assemblies. But specific types are in specific assemblies. So, if you look at the documentation for some type from the namespace you are interested in, you will see in what assembly that type is.

来自同一命名空间的其他类型可能在同一个程序集中,但不是必须的.

Other types from the same namespace are likely to be in the same assembly, but don't have to be.

这篇关于如何查找 .NET 命名空间的程序集名称,例如 Microsoft.WindowsAzure.ServiceRuntime的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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