469,648 Members | 1,168 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,648 developers. It's quick & easy.

Namespace Help! Please!

Hi all,

I am trying to create a namespace hierachy but i think i
am doing something wrong.

I have an DAL vb file with the namespace:

CompanyName.newsletter.DAL

and i compile that using the standard vbc in command
prompt routine, and that works. then i try and create a
Business Layer vb file, with the namespace:

CompanyName.Newsletter.BLL

But for this to work i have to compile both files
together, even though i have imported the
CompanyName.newsletter.DAL namespace. What am i doing
wrong, as i want the two files to sit in two seperate
assemblies.

Please Help!

Rob
Nov 22 '05 #1
1 1150
First compile the DAL (assuming the BLL references the DAL). Then, when you
compile the BLL, use the /reference switch to specify that the BLL should
reference the DAL.
-mike
MVP

"Roberto Modica" <r_******@hotmail.com> wrote in message
news:02****************************@phx.gbl...
Hi all,

I am trying to create a namespace hierachy but i think i
am doing something wrong.

I have an DAL vb file with the namespace:

CompanyName.newsletter.DAL

and i compile that using the standard vbc in command
prompt routine, and that works. then i try and create a
Business Layer vb file, with the namespace:

CompanyName.Newsletter.BLL

But for this to work i have to compile both files
together, even though i have imported the
CompanyName.newsletter.DAL namespace. What am i doing
wrong, as i want the two files to sit in two seperate
assemblies.

Please Help!

Rob

Nov 22 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

8 posts views Thread by Elaine Jackson | last post: by
3 posts views Thread by Anonymous | last post: by
25 posts views Thread by kj | last post: by
3 posts views Thread by Mike Dickens | last post: by
2 posts views Thread by Tjerk Wolterink | last post: by
5 posts views Thread by Alexander Gnauck | last post: by
5 posts views Thread by Mike Oliszewski | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.