title: Project reference not working in VisualStudio2010
body: <p>I've got a Solution with lots of projects and all but one of them is behaving. The one that is not working is a ConsoleApplication, and it relies on C# Class Library project. I've added a reference to the library project, and add the namespace (which I've checked is correct), but everywhere I reference the classes in my library, I get:</p>
  
  <p>The type or namespace 'MyClass' could not be found (are you missing a using directive or an assembly reference?).</p>
  
  <p>The library project is building successfully (I can see the DLLs appear in the bin folder) and I've tried a project reference, and also a reference to the DLL itself. Neither works. </p>
  
  <p>Also, all projects are set to build with a platform target of 'Any CPU'.</p>
  
  <p>I've tried pretty much every suggestion I've come across on forums with no success. Can anyone shed some light on what's going wrong? </p>
  
  <p>Thanks</p>
  
  <blockquote>
    <p>This solved the problem:</p>
  </blockquote>
  
  <p><em>The console application had a Target framework of <code>.NET Framework 4 Client Profile</code>, whereas the library just had <code>.NET Framework 4</code>. I set the console app to <code>.NET Framework 4</code> and it all builds perfectly.</em> </p>