I know there is another question with exact the same problem, but I went trough all those answers, and none helped me. :( (This was the question.)
I just created a new A
Close Visual Studio, find the solution's .suo file, delete it, reopen Visual Studio.
I had the same problem and i tried solutions from Metadata file '.dll' could not be found
but none of these worked.
So after trial and error i fixed it by unloading and reloading the project doing this reset the configuration file and fixed the issue.
I have build 10 projects out of 25 projects in solution individually one by one based on dependencies. Then build the solution. It fixed for me
In my case I run the tests and got error CS0006. It turned out that I run tests in Release mode. Switch to Debug mode fixed this error.