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 1907
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: DJRhino |
last post by:
Was curious if anyone else was having this same issue or not....
I was just Up/Down graded to windows 11 and now my access combo boxes are not acting right. With win 10 I could start typing...
|
by: isladogs |
last post by:
The next Access Europe meeting will be on Wednesday 4 Oct 2023 starting at 18:00 UK time (6PM UTC+1) and finishing at about 19:15 (7.15PM)
The start time is equivalent to 19:00 (7PM) in Central...
|
by: Aliciasmith |
last post by:
In an age dominated by smartphones, having a mobile app for your business is no longer an option; it's a necessity. Whether you're a startup or an established enterprise, finding the right mobile app...
|
by: tracyyun |
last post by:
Hello everyone,
I have a question and would like some advice on network connectivity. I have one computer connected to my router via WiFi, but I have two other computers that I want to be able to...
|
by: giovanniandrean |
last post by:
The energy model is structured as follows and uses excel sheets to give input data:
1-Utility.py contains all the functions needed to calculate the variables and other minor things (mentions...
|
by: NeoPa |
last post by:
Hello everyone.
I find myself stuck trying to find the VBA way to get Access to create a PDF of the currently-selected (and open) object (Form or Report).
I know it can be done by selecting :...
|
by: Teri B |
last post by:
Hi, I have created a sub-form Roles. In my course form the user selects the roles assigned to the course.
0ne-to-many. One course many roles.
Then I created a report based on the Course form and...
|
by: isladogs |
last post by:
The next online meeting of the Access Europe User Group will be on Wednesday 6 Dec 2023 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM).
In this month's session, Mike...
|
by: GKJR |
last post by:
Does anyone have a recommendation to build a standalone application to replace an Access database? I have my bookkeeping software I developed in Access that I would like to make available to other...
| |