The solution I'm working on contains 400+ projects. The issue is not reproducible but very annoying. (Windows 8.1, Visual Studio 2015 Update 2 and 3)
Basically, some project dependencies are not taken into account when calculating build order. The process stops with an error: the referred dll cannot be found. It occurs every now and then, usually with a different project 'missing'. Many of the times nothing is wrong and it just works. Could not find any pattern.
If I build the 'missing' project by hand and then build the solution, everything is fine, or an other project goes 'missing'.
It seems, as if VS had lost track of project dependencies, although every reference is there, as seen is VS and in the csproj files.
See the screenshot: Solution build has stopped, because a dll is missing. The project that produces the dll is referenced correctly (see solution explorer), but is not visible in the Project Dependencies dialog. My guess is that because of that missing dependency, the build order gets confused and - based on some randomness due to parallel compilation - in some cases the dependent project gets built too late.
Note: yes, I could just check that check box but as I said, this issue occurs randomly and with random projects. And yes, I can work around the problem by manually building the affected projects beforehand. I am looking for a solution to the root problem.
Any hints and comments are welcome.
File->save all
to avoid similar errors). Closing and starting VS again has also helped me every now and then.