Setting the namespace of a WinForms UserControl in VB.NET -
how define usercontrols being in namespace below project namespace, ie. [rootnamespace].[subsectionofprogram].controls?
edit due camainc's answer: have constraint have have code in single project.
edit finalise question: suspected isn't possible required camainc's answer nearest solution.
i'm not sure if asking, how it.
we namespace of our projects in consistent manner, user controls no different. namespace using project settings window, although through combination of project window , in code.
each solution gets namespace this:
[companyname].[solutionname].[projectname]
so, our user controls in project called "controls," have namespace of:
ourcompany.thissolution.controls
if have controls might span several different solutions, namespace so:
ourcompany.common.controls
then, in our code import library, or add project solution.
imports ourcompany imports ourcompany.common imports ourcompany.common.controls
we name folders projects live same namespace, down not including company name (all solutions assumed in company namespace):
\projects
\projects\mysolution
\projects\mysolution\controls
-- or --
\projects\
\projects\common
\projects\common\assemblies
\projects\common\controls
etc.
hope helps...
Comments
Post a Comment