Possible Duplicate:
Visual Studio 2010 suddenly can’t see namespace?
I'm adding a reference to project2 from project1. They are in the same solution. I can access the namespace of project2 from within project1 at this point. However, once I build the solution or project1, project2 namespace is no longer available in project1. I've restarted VS2010 but that didn't help.
Any ideas on what is causing this and how to fix it?