Hello
I am trying to create an organised arhcitecture using namespaces and failing. What I aim to do is have a solution for each application that I develop. This solution may contain several projects which may be dlls, controls etc. I would like the solutions and everything else to be organised under my company namespace.
I would then like a namespace structure such as:
MyCompany
MyCompany.Applications
MyCompany.Applications.ToolA()
MyCompany.Applications.ToolB()
MyCompany.Applications.Controls
MyCompany.Applications.Controls
MyCompany.Applications.Controls.ControlA()
MyCompany.Applications.Controls.ControlB()
Im not sure how to set this up. I have tried simply placing approprite nested namespaces above my types but I don't get the results I expect.
namespace MyCompany
{
namespace Applications
{
namespace Controls
{
public partial class ControlA : Form
{}
}
}
}
E.g. I have 3 projects within the my ToolA solution:
ToolA
ControlA
ControlB
ToolA is under the namespace MyCompany.Applications ControlA and ControlB are under the namespace MyCompany.Applications.Controls
How do I now reference the Controls namespace from within the ToolA project so that I can use ControlA and ControlB in it?
I know that I can add a reference to each Control project directly, but, can I not reference their common containing namespace?
And if so how...?