Recently I started to get this message randomly. I have a solution with several projects in it. Current build mode is Debug and all projects' configuration is set to Debug. But when I try to run the main project - sometimes it gives me a few errors all of which are "Metadata file '...\Release\projectX.dll' could not be found" - and, look, it says about RELEASE folder, though current mode is Debug. Why? I tried to search for reference to "Release\projectX.dll" inside all solution files and I found one in ResolveAssemblyReference.cache file.
I made a good search over the internet and found a few people with the similar problem, but there was no solution, or at least no working solution.
I tried to delete references to those projects and readd them, but in some time I start getting these errors again.
It seems like a bug. Why does it search for referenced projects in Release folders when I always use Debug mode?
PS. For those who met this problem: I couldn't solve it with an easy way, it disappeared only after I reinstalled windows :(