creating namespaces - how to organise solution.

G

Guest

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
 
M

Mattias Sjögren

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Top