title: Visual Studio 2013 C# Web Project builds but IDE reports The type or namespace name xxx could not be found error
body: <p>When opening an MVC4 C# web project in Visual Studio 2013, the IDE reports the error "The type or namespace name '<em>_</em>' could not be found (are you missing a using directive or an assembly reference)", but the project builds and runs without any errors. Furthermore, intellisense does not include the project namespace.</p>
  
  <p>The "missing" reference is to files within the same project.
  for example; the web project namespace is "webproject.com", and references in a controller files to "webproject.com.models" is underlined in red with the error above.</p>
  
  <p>I have checked the following:</p>
  
  <ul>
  <li>All Solution projects are configured to use the same Target Framework(.Net 4) </li>
  <li>web.config in the Views folder contains the namespace in the system.web.webPages.razor section</li>
  <li>cleaned and rebuilt solution</li>
  <li>deleted all bin and obj content</li>
  <li>deleted .suo and .csproj.user files that were created by VS2010</li>
  </ul>
  
  <p>The only way that I can get rid of these errors being reported in VS2013 is to unload then reload the project.</p>
  
  <p>When opened in Visual Studio 2010 I do not get these problems.</p>