title: Namespace errors when converting a project to VS 2010
body: <p>So I'm a fledgeling programmer that's been assigned to get to know an application that's been in development (in VS2005, then in 2008) for quite some time. Over the life of the project the naming conventions therein have become somewhat convoluted. For the sake of example, here is a piece of the naming structure.</p>
  
  <blockquote>
    <p><code>_MegaCorp.sln</code></p>
    
    <blockquote>
      <p><code>Application_Install</code></p>
      
      <p><code>Megacorp</code></p>
      
      <blockquote>
        <p><code>DbResources.csproj</code></p>
        
        <p><code>Forms</code></p>
        
        <blockquote>
          <p><code>Megacorp.Forms.Concept.csproj</code></p>
          
          <blockquote>
            <p><code>Properties</code></p>
            
            <p><code>Resources</code></p>
            
            <p><code>Megacorp</code></p>
            
            <blockquote>
              <p><code>Forms</code></p>
              
              <blockquote>
                <p><code>Concept</code></p>
                
                <blockquote>
                  <p><code>xyz.cs</code></p>
                </blockquote>
              </blockquote>
            </blockquote>
          </blockquote>
        </blockquote>
      </blockquote>
    </blockquote>
  </blockquote>
  
  <p>It's maybe not the best way to organize information, but it works fine in VS2008. Updating to VS2010 shouldn't necessitate an overhaul of the existing code, right?</p>
  
  <p>What's happening is this: when xyz calls for DbResources, visual studio is looking in Megacorp.Forms.Concept.Megacorp, not in the parent Megacorp folder. All the proper references and using statements are in order: as I said, everything works fine in VS2008. What's happening here?</p>
  
  <pre><code>    Error   826 The type or namespace name 'xxx' does not exist in the namespace 'MegaCorp.Forms.Concept.Megacorp.Forms.Concept' (are you missing an assembly reference?)   C:\x\y\c-sharp\Megacorp\Forms\Concept\ConstructEditor.Designer.cs   99  63  MegaCorp.Forms.Concept
  </code></pre>
  
  <p>UPDATE: If I add <code>global::</code> before each use of a class in xyz.cs, this resolves the problem. However, there are about 1,000,000 lines of code, and over 400 errors reported by the compiler. I'm sure that if I combed through each of the 400 errors, pasting <code>global::</code> before each one, more errors would arise. There must be another way to do this, because again, the solution comprises a very functional and in-use application compiled in VS2008.
  Thanks for your help!</p>