473,320 Members | 1,902 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

Namespace Management

Hi There!

I just need some advice on Namespace management for creating reusable VB.NET
applications.

I would like my applications to have this namespace structure...

Namespace MyCompany

Namespace MyApplication1

Namespace Module1

End Namespace

End Namespace

End Namespace

However, I find it hard to enforce this structure throughout many different
VB.NET files and projects. For example, I need to manually type in Namespace
for MyCompany, MyApplication1 and Module(n) for every VB.NET class files.

Is there anyway to define a namespace on the Root directory and all the
VB.NET files in the child directory automatically inherits the parent
Namespace?

Thanks in advance!

Don
Jul 21 '05 #1
6 1927
Hi,

In the projects properties you can set the root namespace.
Ken
----------------
"Don Wash" <do*@wash.com> wrote in message
news:us**************@tk2msftngp13.phx.gbl...
Hi There!

I just need some advice on Namespace management for creating reusable VB.NET
applications.

I would like my applications to have this namespace structure...

Namespace MyCompany

Namespace MyApplication1

Namespace Module1

End Namespace

End Namespace

End Namespace

However, I find it hard to enforce this structure throughout many different
VB.NET files and projects. For example, I need to manually type in Namespace
for MyCompany, MyApplication1 and Module(n) for every VB.NET class files.

Is there anyway to define a namespace on the Root directory and all the
VB.NET files in the child directory automatically inherits the parent
Namespace?

Thanks in advance!

Don

Jul 21 '05 #2
Hi Ken,

Thanks for the reply. I can now set it. However, as I presented the
Namespace structure in my previous post, my Namespace structure looks like
following...

Namespace MyCompany

Namespace MyApplication1

Namespace Module1

End Namespace

End Namespace

End Namespace

So as you can see, there will be no projects whatsoever using 'MyCompany'
namespace. It will just be a wrapper Namespace which will wrap the actual
applications such as 'MyApplication1' and children. So do I need to create a
dummy project just to create a wrapper Namespace 'MyCompany' ?

Thanks again,
Don

"Ken Tucker [MVP]" <vb***@bellsouth.net> wrote in message
news:OX*************@tk2msftngp13.phx.gbl...
Hi,

In the projects properties you can set the root namespace.
Ken
----------------
"Don Wash" <do*@wash.com> wrote in message
news:us**************@tk2msftngp13.phx.gbl...
Hi There!

I just need some advice on Namespace management for creating reusable VB.NET applications.

I would like my applications to have this namespace structure...

Namespace MyCompany

Namespace MyApplication1

Namespace Module1

End Namespace

End Namespace

End Namespace

However, I find it hard to enforce this structure throughout many different VB.NET files and projects. For example, I need to manually type in Namespace for MyCompany, MyApplication1 and Module(n) for every VB.NET class files.

Is there anyway to define a namespace on the Root directory and all the
VB.NET files in the child directory automatically inherits the parent
Namespace?

Thanks in advance!

Don

Jul 21 '05 #3
Can't you just set the root to MyCompany.MyApplication1 ?

Greg

"Don Wash" <do*@wash.com> wrote in message
news:uC*************@TK2MSFTNGP09.phx.gbl...
Hi Ken,

Thanks for the reply. I can now set it. However, as I presented the
Namespace structure in my previous post, my Namespace structure looks like
following...

Namespace MyCompany

Namespace MyApplication1

Namespace Module1

End Namespace

End Namespace

End Namespace

So as you can see, there will be no projects whatsoever using 'MyCompany'
namespace. It will just be a wrapper Namespace which will wrap the actual
applications such as 'MyApplication1' and children. So do I need to create a dummy project just to create a wrapper Namespace 'MyCompany' ?

Thanks again,
Don

"Ken Tucker [MVP]" <vb***@bellsouth.net> wrote in message
news:OX*************@tk2msftngp13.phx.gbl...
Hi,

In the projects properties you can set the root namespace.
Ken
----------------
"Don Wash" <do*@wash.com> wrote in message
news:us**************@tk2msftngp13.phx.gbl...
Hi There!

I just need some advice on Namespace management for creating reusable

VB.NET
applications.

I would like my applications to have this namespace structure...

Namespace MyCompany

Namespace MyApplication1

Namespace Module1

End Namespace

End Namespace

End Namespace

However, I find it hard to enforce this structure throughout many

different
VB.NET files and projects. For example, I need to manually type in

Namespace
for MyCompany, MyApplication1 and Module(n) for every VB.NET class files.
Is there anyway to define a namespace on the Root directory and all the
VB.NET files in the child directory automatically inherits the parent
Namespace?

Thanks in advance!

Don


Jul 21 '05 #4
Yes, I could. But then again, I have to set this information to every
application I develop which is very redundant and really a pain when I need
to change company name.

Any other methods?

Thanks,
Don

"Greg Burns" <greg_burns@DONT_SPAM_ME_hotmail.com> wrote in message
news:%2****************@tk2msftngp13.phx.gbl...
Can't you just set the root to MyCompany.MyApplication1 ?

Greg

"Don Wash" <do*@wash.com> wrote in message
news:uC*************@TK2MSFTNGP09.phx.gbl...
Hi Ken,

Thanks for the reply. I can now set it. However, as I presented the
Namespace structure in my previous post, my Namespace structure looks like
following...

Namespace MyCompany

Namespace MyApplication1

Namespace Module1

End Namespace

End Namespace

End Namespace

So as you can see, there will be no projects whatsoever using 'MyCompany' namespace. It will just be a wrapper Namespace which will wrap the actual applications such as 'MyApplication1' and children. So do I need to
create a
dummy project just to create a wrapper Namespace 'MyCompany' ?

Thanks again,
Don

"Ken Tucker [MVP]" <vb***@bellsouth.net> wrote in message
news:OX*************@tk2msftngp13.phx.gbl...
Hi,

In the projects properties you can set the root namespace.
Ken
----------------
"Don Wash" <do*@wash.com> wrote in message
news:us**************@tk2msftngp13.phx.gbl...
Hi There!

I just need some advice on Namespace management for creating reusable

VB.NET
applications.

I would like my applications to have this namespace structure...

Namespace MyCompany

Namespace MyApplication1

Namespace Module1

End Namespace

End Namespace

End Namespace

However, I find it hard to enforce this structure throughout many

different
VB.NET files and projects. For example, I need to manually type in

Namespace
for MyCompany, MyApplication1 and Module(n) for every VB.NET class

files.
Is there anyway to define a namespace on the Root directory and all the VB.NET files in the child directory automatically inherits the parent
Namespace?

Thanks in advance!

Don



Jul 21 '05 #5
I do a lot of work with a Global insurance company that has a standard that
all applications will start with the company name followed by other company
specific information.

Developers are simply told that when they create a new project, set the root
namespace to Companyname.otherInfo.etc. It isn't really a big deal because
they are not making new projects every 2 seconds and it only takes 2 seconds
to set the root namespace.
"Don Wash" <do*@wash.com> wrote in message
news:%2****************@TK2MSFTNGP10.phx.gbl...
Yes, I could. But then again, I have to set this information to every
application I develop which is very redundant and really a pain when I need to change company name.

Any other methods?

Thanks,
Don

"Greg Burns" <greg_burns@DONT_SPAM_ME_hotmail.com> wrote in message
news:%2****************@tk2msftngp13.phx.gbl...
Can't you just set the root to MyCompany.MyApplication1 ?

Greg

"Don Wash" <do*@wash.com> wrote in message
news:uC*************@TK2MSFTNGP09.phx.gbl...
Hi Ken,

Thanks for the reply. I can now set it. However, as I presented the
Namespace structure in my previous post, my Namespace structure looks like following...

Namespace MyCompany

Namespace MyApplication1

Namespace Module1

End Namespace

End Namespace

End Namespace

So as you can see, there will be no projects whatsoever using 'MyCompany' namespace. It will just be a wrapper Namespace which will wrap the actual applications such as 'MyApplication1' and children. So do I need to create
a
dummy project just to create a wrapper Namespace 'MyCompany' ?

Thanks again,
Don

"Ken Tucker [MVP]" <vb***@bellsouth.net> wrote in message
news:OX*************@tk2msftngp13.phx.gbl...
> Hi,
>
> In the projects properties you can set the root namespace.
>
>
> Ken
> ----------------
> "Don Wash" <do*@wash.com> wrote in message
> news:us**************@tk2msftngp13.phx.gbl...
> Hi There!
>
> I just need some advice on Namespace management for creating reusable VB.NET
> applications.
>
> I would like my applications to have this namespace structure...
>
> Namespace MyCompany
>
> Namespace MyApplication1
>
> Namespace Module1
>
> End Namespace
>
> End Namespace
>
> End Namespace
>
> However, I find it hard to enforce this structure throughout many
different
> VB.NET files and projects. For example, I need to manually type in
Namespace
> for MyCompany, MyApplication1 and Module(n) for every VB.NET class

files.
>
> Is there anyway to define a namespace on the Root directory and all

the > VB.NET files in the child directory automatically inherits the parent > Namespace?
>
> Thanks in advance!
>
> Don
>
>
>



Jul 21 '05 #6
"Don Wash" <do*@wash.com> wrote in message
news:%2****************@TK2MSFTNGP10.phx.gbl...
Yes, I could. But then again, I have to set this information to every
application I develop which is very redundant and really a pain when I need to change company name.

Any other methods?

Thanks,
Don


That's pretty much the limit of your choices, I'm afraid. Nothing that
can't be handled with a good program editor's file search/replace
functionality - on those rare occasions when the company name changes. :-)

Best Regards,

Andy
Jul 21 '05 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: PaulThomas | last post by:
I am using VS.Net 2000 and C# trying to access the System.Management namespace in a Web Application -but- after: using System; using System.Management; I get: The type or namespace name...
2
by: Pablo Garcia | last post by:
I am working with Windows Management Instrumentation (WMI). I must use the namespace ROOT.CIMV2, I have written "using ROOT.CIMV2.Win32" on the top of the file, but a compilation error happened...
1
by: Pablo Garcia | last post by:
Please, if someone knows which reference I must Add to use the namespace ROOT.CIMV2, please tell me. Thank you
4
by: raffelm | last post by:
I want to include ManagementObjectSearcher class in my code. According to MSND I need to add using System.Management to my C# file. But I dont have a Management name space in system. I'm using...
2
by: TRW | last post by:
I can not get the the .Management namespace into my program. I've installed (so I think) the WMI SDK as well has the core SDK. Am I missing something? Visual Studio does not find this...
7
by: thechaosengine | last post by:
Hi all, Can anyone tell me if it is advisable (or even possible) to define a namespace across 2 or more assemblies? For example, consider the namespace SampleApplication.Data.Providers ...
3
by: Jennifer | last post by:
I am working through a textbook on VB.NET and one of the examples references the namespace: System.Management. This (.Management at least) does not appear to be available on my computer. Do I need...
6
by: Don Wash | last post by:
Hi There! I just need some advice on Namespace management for creating reusable VB.NET applications. I would like my applications to have this namespace structure... Namespace MyCompany ...
2
by: Rich | last post by:
Greetings, I am trying to find a way to use a form of GetObject in VB.Net and have been researching WMI. Apparently, this is a vast subject, but seems to reference a Namespace called...
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.