![]() | |
![]() |
| | Thread Tools | Search this Thread | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
#3
| |||
| |||
|
|
Hi, In the projects properties you can set the root namespace. Ken ---------------- "Don Wash" <don (AT) wash (DOT) com> wrote in message news:us$wAuueEHA.2028 (AT) tk2msftngp13 (DOT) 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 |
#4
| |||
| |||
|
|
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]" <vb2ae (AT) bellsouth (DOT) net> wrote in message news:OXpck2ueEHA.556 (AT) tk2msftngp13 (DOT) phx.gbl... Hi, In the projects properties you can set the root namespace. Ken ---------------- "Don Wash" <don (AT) wash (DOT) com> wrote in message news:us$wAuueEHA.2028 (AT) tk2msftngp13 (DOT) 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 |
#5
| |||
| |||
|
|
Can't you just set the root to MyCompany.MyApplication1 ? Greg "Don Wash" <don (AT) wash (DOT) com> wrote in message news:uCU7WCveEHA.332 (AT) TK2MSFTNGP09 (DOT) 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]" <vb2ae (AT) bellsouth (DOT) net> wrote in message news:OXpck2ueEHA.556 (AT) tk2msftngp13 (DOT) phx.gbl... Hi, In the projects properties you can set the root namespace. Ken ---------------- "Don Wash" <don (AT) wash (DOT) com> wrote in message news:us$wAuueEHA.2028 (AT) tk2msftngp13 (DOT) 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 |
#6
| |||
| |||
|
|
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 (AT) DONT_SPAM_ME_hotmail (DOT) com> wrote in message news:%23f5CMIveEHA.1644 (AT) tk2msftngp13 (DOT) phx.gbl... Can't you just set the root to MyCompany.MyApplication1 ? Greg "Don Wash" <don (AT) wash (DOT) com> wrote in message news:uCU7WCveEHA.332 (AT) TK2MSFTNGP09 (DOT) 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]" <vb2ae (AT) bellsouth (DOT) net> wrote in message news:OXpck2ueEHA.556 (AT) tk2msftngp13 (DOT) phx.gbl... Hi, In the projects properties you can set the root namespace. Ken ---------------- "Don Wash" <don (AT) wash (DOT) com> wrote in message news:us$wAuueEHA.2028 (AT) tk2msftngp13 (DOT) 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 |
#7
| |||
| |||
|
|
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 |
![]() |
| Thread Tools | Search this Thread |
| Display Modes | |
| |