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 6 1929
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
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
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
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
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 > > >
"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 This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
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...
|
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...
|
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
|
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...
|
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...
|
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
...
|
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...
|
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
...
|
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...
|
by: ryjfgjl |
last post by:
ExcelToDatabase: batch import excel into database automatically...
|
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...
|
by: Vimpel783 |
last post by:
Hello!
Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
|
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...
|
by: PapaRatzi |
last post by:
Hello,
I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
|
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...
|
by: Defcon1945 |
last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
|
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: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome former...
| |