You need to build the project B, get the DLL and add it as a reference in the project A.
here is how to add a reference inside a project in the MSDN