How to find assembly name for .NET namespace e.g. Microsoft.WindowsAzure.ServiceRuntime

I have a general question and a specific example. This should be easy, in line with all the similar questions in Stack regarding assemblies for namespaces. The most common answer is in the question How do I know which link to enable to import a specific .NET namespace? .

"All pages of an MSDN document mention namespace and assembly."

However, the assembly is not mentioned on this MSDN page. What obvious thing am I missing?

Microsoft.WindowsAzure.ServiceRuntime Namespace

Corrected version:

In particular, I am looking for a DLL file to include the Azure RoleEnvironment class. When I pressed F1 and looked at the MSDN page of the MSDN RoleEnvironment , it mentions the Microsoft.WindowsAzure.ServiceRuntime namespace, but no assembly to enable, I used to come across such things, so I thought I would make this a general question. Although I want to know the specific DLL file for the link, I also want to know the answer, so I know what to do the next time I come across this situation.

+4
source share
2 answers

Namespaces do not have assemblies. A single namespace can (and often is) in multiple assemblies. But specific types are in specific assemblies. So, if you look at the documentation for any type from the namespace you are interested in, you will see in which assembly this type is.

Other types from the same namespace are likely to be in the same assembly, but not necessarily.

+6
source

Namespace: Microsoft.WindowsAzure.ServiceRuntime Build: Microsoft.WindowsAzure.ServiceRuntime (in microsoft.windowsazure.serviceruntime.dll)

RoleEnvironment

0
source

All Articles