title: Problem accessing namespace in Visual Studio 2010 add-in
body: <p>I've been tasked with turning a preexisting project into an add-in. The current project is a class library. In the add-in, I added the CL project as a reference. In the add-in's Connect class' Exec method, I tried adding the following code to open the entry point for the CL:</p>
  
  <pre><code>var form = new CLNameSpace.MainForm();
  form.Show();
  </code></pre>
  
  <p>Where CLNameSpace (renamed for this article) is the namespace being referenced from the CL project. It is also in the <code>using</code> block at the top of the code. I tried <a href="https://stackoverflow.com/questions/3193255/how-to-get-the-assembly-name-and-class-name-with-full-namespace-of-a-given-class/3194121#3194121">this answer</a>'s method to get the fully qualified name and it is correct. I do not get any build or run-time errors but something is wrong. Using the Immediate Window to instantiate the two lines above by hand, I get the following error message:</p>
  
  <blockquote>
    <p>The type or namespace name 'CLNameSpace' is not valid in this scope</p>
  </blockquote>
  
  <p>How do I get around this namespace visibility issue? I wonder if it's some kind of configuration in CLNameSpace (if that's even possible.)</p>