Why is the namespace not visible in VB code files?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Diggie
    New Member
    • Feb 2008
    • 2

    Why is the namespace not visible in VB code files?

    Why does visual basic not display the namespace at the top of each code file like C# files do?
    I am trying to make a namespace span multiple assemblies in VB, but since the namespaces are not visible i cannot simply go in and change them. The only way I have found to do this is to make the root namespace the same for each assembly (from the project properties window), and then make any sub namespaces from there.
    Is there an option to see the namespace in a VB code file, or else a different way to share a namespace among assemblies without making all of their root namespaces the same?

    Thanks,
    Diggie
  • Diggie
    New Member
    • Feb 2008
    • 2

    #2
    No, there is not. I've figured out. But this is just the way it is.
    The main reason I wanted to figure this out, is because I was using generated DataSets and tableAdapters and wanted them all on a sub namespace. To do this, all you have to do is set the "Custom Tool Name" property of the dataset and that will be the sub namespace.
    Some people say that you could place your class files within "Folders" in the solution explorer, and each Folder becomes a sub namespace, but that didn't work for me. If someone has the answer to this, please post it.

    Thanks,
    Diggie

    Comment

    Working...