title: Could not load file or assembly 'System.Core, Version=3.5.0.0'
body: <p>I have an ASP.NET 3.5 solution that was recently upgraded to run on .NET 4.0.  Despite that, it seems that most of the projects in the solution are still set to target the .NET 3.5 Framework.</p>
  
  <p>That being said, I can't debug any of these projects now.  I get the following error:</p>
  
  <pre>
  Parser Error Message: Could not load file or assembly 'System.Core, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified.
  </pre>
  
  <pre>
  === Pre-bind state information ===  
  LOG: User = myusername
  LOG: DisplayName = System.Core, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35  
       (Fully-specified) 
  LOG: Appbase = file:///C:/Projects/myprojectpath/ 
  LOG: Initial PrivatePath = C:\Projects\myprojectpath\bin 
  Calling assembly : (Unknown).
  === 
  LOG: This bind starts in default load context. 
  LOG: Using application configuration file: C:\Projects\myprojectpath\web.config   
  LOG: Using machine configuration file from C:\Windows\Microsoft.NET\Framework\v2.0.50727\config\machine.config. 
  LOG: Post-policy reference: System.Core, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35 
  LOG: The same bind was seen before, and was failed with hr = 0x80070002.
  </pre>
  
  <p>I have edited my project file manually, as described <a href="https://stackoverflow.com/questions/1302488/the-type-or-namespace-name-linq-does-not-exist-in-the-namespace-system-data/4331322#4331322">here</a> and added the following lines:</p>
  
  <pre><code>&lt;Reference Include="System.Core"&gt;
    &lt;RequiredTargetFramework&gt;3.5&lt;/RequiredTargetFramework&gt;
  &lt;/Reference&gt;
  </code></pre>
  
  <p>But it did no good.  Can someone explain why I'm getting this error message and how to resolve it?  Thanks!</p>