title: Referenced DLL not found because VS namespace wrong
body: <p>I have a DLL that contains common types and routines. The assembly name and namespace are the same:</p>
  
  <pre><code>MyCompany.Tools.Common
  </code></pre>
  
  <p>I add a reference to this DLL and then I add a using statement to a file that wishes to use a type from the assembly:</p>
  
  <pre><code>using MyCompany.Tools.Common;
  </code></pre>
  
  <p>I then use one of the types in another assembly:</p>
  
  <pre><code>SafeInvoker.Invoke(this.pctBoxCLIP, delegate { this.pctBoxCLIP.Visible = value; });
  </code></pre>
  
  <p>So far all good, however when I now try and build the assembly, Visual Studio complains that:</p>
  
  <blockquote>
    <p>"The type or namespace name
    '<strong>Common</strong>' does not exist in the
    namespace
    '<strong>MyCompany.Tools</strong>'</p>
  </blockquote>
  
  <p>However, if I look in the Object Browser, I can see the namespace <code>MyCompany.Tools.Common</code> &amp; all the types etc.</p>
  
  <p>If I remove the reference to the DLL and add it again the error is removed until I attempt to build again.</p>
  
  <p>Any idea what is going on here and how to resolve it?</p>