title: Visual Studio refuses to build project due to missing assembly reference that isn't missing
body: <p>I'm building a c# windows service and has added a couple of assembly references (to other projects of my own) to my project. </p>
  
  <p>I get the following error when I build:</p>
  
  <blockquote>
    <p>"Error    25  The type or namespace name 'TestClass' could not be found (are you missing a using directive or an assembly reference?"</p>
  </blockquote>
  
  <p>Interestingly enough, the reference path in the csproj-file is correct, and on top of that, classes and namespaces from the referenced project, that according to Visual Studio is missing, is being picked up by Intellisense and even the "go to definition" function works fine. Furthermore, I have other projects in the exact same folder as my new windows service and they picked up the assembly references just fine. All the referenced projects are included in the solution.</p>
  
  <p>I use Visual Studio 2013 Update 3. There is really no code that I could show that would give you more information, but let me know if you want to see some screenshots or something. </p>
  
  <p>Attempts so far: </p>
  
  <ul>
  <li>Tried restarting VS and reloading all projects</li>
  <li>Tried adding the paths to the properties reference paths page.</li>
  <li>Tried all steps in this guide: <a href="https://msdn.microsoft.com/en-us/library/ayds71se.aspx" rel="noreferrer">https://msdn.microsoft.com/en-us/library/ayds71se.aspx</a></li>
  </ul>
  
  <p><strong>Update</strong>
  When I select one of the "missing" references in the reference list, and go to properties, there is no path defined. Yet, the relative path is in the csproj-file as is correct. Confusing. </p>
  
  <p><strong>Update 2</strong>
  Removing all the references, reloading the projects and then doing a clean fixed it for me. Apparently, the problem was caused by all dlls not being updated in the build stack.</p>