title: Web Reference namespace not seen by Visual Studio 2010 compiler after 2.0 to 3.5 project conversion
body: <p>I'm getting a build error in Visual Studio that's not making any sense:</p>
  
  <blockquote>
    <p>The type or namespace name 'MyService' does not exist in the namespace 'My.Project' (are you missing an assembly reference?)  </p>
  </blockquote>
  
  <p>The namespace <code>MyService</code> is defined in a Web Reference.  In the Object Browser, I can clearly see that namespace and all of the classes defined in it.  There are no compile errors for any of the code in the Web Reference.  </p>
  
  <p>The code stopped compiling after I changed the framework target from 2.0 to 3.5.  Why could the compiler be choking, and how can I go about fixing this?  I already tried updating the web reference, but the problem remains.  I even tried commenting out the code in the generated "Reference.cs" and copying the code to another code file in the project, and the namespace was still not seen.</p>
  
  <p>My project is referencing the following:</p>
  
  <pre>
  System                     2.0.0.0
  System.Data                2.0.0.0
  System.EnterpriseServices  2.0.0.0
  System.Net                 3.5.0.0
  System.Web.Services        2.0.0.0
  System.Xml                 2.0.0.0
  </pre>
  
  <p><strong>Update</strong></p>
  
  <p>It isn't just my web service generated code that is having compile problems; for all of the projects converted to .NET 3.5, I cannot reference their namespaces.</p>
  
  <p>I'm still not sure why this is all happening, but I found a workaround; by adding a <code>using Ns = My.Project.MyService</code> to my code, I was able to reference types in the namespace with <code>Ns.MyType</code>.</p>