0

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?

Community
  • 1
  • 1
4thSpace
  • 43,672
  • 97
  • 296
  • 475

2 Answers2

2

For this to work, I had to change the console app from '.NET Framework 4 Client Profile' to '.NET Framework 4'.

4thSpace
  • 43,672
  • 97
  • 296
  • 475
0

And after you added the reference to 'project2', you did add a 'using project2;' statement?

Norman Skinner
  • 6,729
  • 1
  • 19
  • 22