4

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?.

"All MSDN doc pages mention namespace and assembly."

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

Microsoft.WindowsAzure.ServiceRuntime Namespace

Revised:

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.

Community
  • 1
  • 1
Brad Boyce
  • 1,248
  • 1
  • 17
  • 34
  • 1
    When I load the RoleEnvironment page, right under the line giving the type's namespace, it says "Assembly: Microsoft.WindowsAzure.ServiceRuntime (in microsoft.windowsazure.serviceruntime.dll)" – phoog Oct 09 '11 at 15:30
  • ahhh, somehow I was looking at the Members page, and not the Class page. There it is, right at the top. Thanks. – Brad Boyce Oct 09 '11 at 15:36

2 Answers2

6

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.

svick
  • 236,525
  • 50
  • 385
  • 514
  • Thanks for your response. Please see revised question. – Brad Boyce Oct 09 '11 at 15:27
  • A specific example: System.Collections.Generic.List is found in mscorlib.dll, while System.Collections.Generic.SortedSet is found in System.dll – phoog Oct 09 '11 at 15:33
-1

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

RoleEnvironment

Joe Mancuso
  • 2,099
  • 1
  • 16
  • 17