title: "This source file has changed. It no longer matches…" error
body: <p>I have a primary project which refers to DLL of a secondary project. I changed some code in secondary project, built it and changed the DLL reference in the primary project to the updated DLL.</p>
  
  <p>Now, in VS 2010, when I press <kbd>F11</kbd> to try and debug the updated code from the secondary project, it shows the following error and takes me to the old code when I press OK.</p>
  
  <blockquote>
    <p>This source file has changed. It no longer matches the version of the
    file used to build the application being debugged.</p>
  </blockquote>
  
  <p><a href="https://i.stack.imgur.com/ClFPl.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/ClFPl.png" alt="enter image description here"></a></p>
  
  <p>I have tried Clean+Build, Rebuild, cleared temporary files etc. I checked the properties of the DLL and its path points to the newer version(updated code). But the problem still persists.</p>
  
  <p>In short, VS is completely ignoring the new code. Any clues how to resolve it?</p>