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 1308
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: 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: 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: Microsoft |
last post by:
I'm not sure where to physically place my subroutines in vb.net I get
namespace and not declared errors...
Imports System
Imports System.Management
Public Class Form1
|
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: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
| |
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers,...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
| |
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |