Confused about Assembly naming with Namespace

E

Elmo Watson

OK - here's the situation - I want my namespace to be:
MyCompanyName.Controls

I want my custom web control to be called:
MyControl (myControl.dll, or MyCompanyName.Controls.MyControl.dll - whatever
is expected)

Then, when I declare it in the project, it will be like this:
Dim ctl as new MyCompanyName.Controls.MyControl

However, after putting:
MyControl
in the assembly name box of the Application Tab (MyProject)
and
MyCompanyName.Controls
in the Root Namespace textbox, the only way to get it in code is:
Dim ctl as new
MyCompanyName.Controls.MyCompanyName.Controls.MyControl.myControl

In my AssemblyInfo.vb, I see:
<Assembly: AssemblyTitle("MyControl")>
<Assembly: AssemblyDescription("")>
<Assembly: AssemblyCompany("MyCompanyName")>
<Assembly: AssemblyProduct("MyControl")>

where am I going wrong?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,744
Messages
2,569,484
Members
44,903
Latest member
orderPeak8CBDGummies

Latest Threads

Top