title: Why is namespace not recognised?
body: <p>I have a solution called Tools that has three projects in it; Tools, PerecentageBar, MessageBox. Each of these projects is part of the Tools assembly.[In the properties page of each I have set the AssemblyName to MyCompany.Tools.Controls]. </p>
  
  <p>I have in Tools Project:</p>
  
  <pre><code>namespace MyCompany.Tools.Controls
  {
       public class MyPictureBox : PictureBox
       {} 
  }
  </code></pre>
  
  <p>And in the MessageBox project.</p>
  
  <pre><code>namespace MyCompany.Tools.Controls
  {
       public class MyMessageBox : Form
       {} 
  }
  </code></pre>
  
  <p>And in the PercentageBar project</p>
  
  <pre><code>namespace MyCompany.Tools.Controls
  {
       public class PercentageBar: UserControl
       {} 
  }
  </code></pre>
  
  <p>This solution is built and a MyCompany.Tools.Controls.dll created.</p>
  
  <p>In another solution, I have a project called MapperTool.</p>
  
  <pre><code>namespace MapperTool
  {
      public class MapperToolFacade : IDisposable, IDiagService
      {}
  }
  </code></pre>
  
  <p>In this project I add a reference to the dll above AND add a using statement thus:</p>
  
  <pre><code>using MyCompany.Tools.Controls;
  </code></pre>
  
  <p>All good so far, however. In this project I can only 'see' and use MyPictureBox with the above using statement. The other types MyMessageBox and PercentageBar are not available.</p>
  
  <p>Why is this?</p>
  
  <p>EDIT:
  Investigation shows that the other types are there and under the namespace MyCompany.Tools.Controls. However, looking in class view they are not listed in the MyCompany.Tools.Controls assembly. Instead they are organised thus:</p>
  
  <pre><code>MyCompany.Tools.Controls                  (assembly)
      MyCompany.Tools.Controls              (namespace)
          MyPictureBox                      (type)
  
  PercentageBar
      MyCompany.Tools.Controls
          PercentageBar
  
  MyMessageBox
      MyCompany.Tools.Controls
          MyMessageBox
  </code></pre>
  
  <p>So I guess the next question is, if I have specified the assembly name as MyCompany.Tools.Controls in each project why have the second two projects been built as an assembly with a different name? [ The dll in the output directory does however have the naem MyCompany.Tools.Controls.dll]</p>
  
  <p>Also, I want to creat all my controls in the MyCompany.Tools.Controls namespace and build them into a single MyCompany.Tools.Controls assembly such that I can add just this reference to any other project that needs to use them.</p>
  
  <p>It would appear from what is happening above that each seperate tools project in my MyCompany.Tools.Controls solution would have to be built into a unique assembly and that each would have to be referenced individually...?</p>
  
  <p>The problem was my understanding of projects and assemblies. It would appear that it is not possible to have the 3 projects build into one assembly. Each must build it's own assembly - I will then have to use a merge tool to combine them into one assembly.        </p>