Why is the namespace not visible in VB code files?

20 pts.
Tags:
Namespace
VB.NET
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
ASKED: February 26, 2008  7:48 PM
UPDATED: March 14, 2008  2:19 AM

Answer Wiki

Thanks. We'll let you know when a new response is added.

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

Discuss This Question:  

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Thanks! We'll email you when relevant content is added and updated.

Following