I’m using VS10 and C# and I’ve encountered a weird problem. I have 2 project A and B, A is a class library, and B is a console project. B depends on A, so I added the project reference of A to B.
But when I use types created in project A in project B, VS complains the following:
The type or namespace name could not be found (are you missing a
using directive or an assembly reference?)
I’ve never encountered this problem before, does anyone know what went wrong?
Thanks.
Since you have Project B targetting
Client Profilewhile the library is built for4.0this cannot be done.You will have to upgrade the console app to target
4.0MSDN