I have a large primarily C# solution in Visual Studio (around 24 projects within it) and (at least) two of the projects (.csproj files) have references to other project's (C++) .dll files in their obj folders. Sometimes it compiles and sometimes it doesn't. When it compiles I'm able to look at the properties of the reference and see that it's pointing to the obj folder for the .dlls. When it doesn't compile those references are blank.
I've tried adding a reference directly to the .vcxproj but I get an error saying a reference to ___ could not be added. I've also tried adding a reference to the the .dll in the \release folder but I get:
I should probably add that some of these C++ libraries were built back using VS 2005 and I have no idea if they've been upgraded properly. In VS2017 they all say "(Visual Studio 2013)" next to them so I assume that's what they're targeting.
So ultimately my question is why would someone have added the references from the obj folder and how do I get this to build reliably?