468,771 Members | 1,479 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

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

creating namespaces - how to organise solution.

Hi peeps

I want to create some namespaces and dlls to encapsulate some common
functionality. Here's what I want.

Me
Me.CompanyA
Me.CompanyA.BusinessObjects
Me.CompanyB.
Me.CompanyB.BusinessObjects
Me.Utils
Me.Utils.Security

...you get the picture. Ideally I'd like each namespace to be in a seperate
DLL, so that I can just reference the DLLs I need in an app, rather than 1
big one.

My question is, how do I create all these namespaces. Should each namespace
be in a seperate project? And when creating a new project, do I just change
the namespace to whatever I want, eg. Me.Utils.Security.

Once compiled, do I just rename the created dll to the name of the namespace?

Cheers for any info
Dan
Nov 17 '05 #1
1 1268
My question is, how do I create all these namespaces. Should each namespace
be in a seperate project?
It doesn't have to be that way, but if that's what you want, sure.

And when creating a new project, do I just change
the namespace to whatever I want, eg. Me.Utils.Security.
Yes

Once compiled, do I just rename the created dll to the name of the namespace?


Better yet, set the assembly name to be the same as the namespace
before compiling so the DLL is correctly named to begin with.


Mattias

--
Mattias Sjögren [MVP] mattias @ mvps.org
http://www.msjogren.net/dotnet/ | http://www.dotnetinterop.com
Please reply only to the newsgroup.
Nov 17 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

7 posts views Thread by Rob G | last post: by
5 posts views Thread by M Shafaat | last post: by
7 posts views Thread by Dylan Parry | last post: by
8 posts views Thread by redeagle | last post: by
reply views Thread by zhoujie | last post: by
1 post views Thread by Marin | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.