How to refer a class library's dll inside another class library project?
===

I have a dll from a class library project AppconClient. I am referring that dll in another class library project p2. I copied that dll from project AppconClient and copied to Bin\Debug folder of the project p2 and I referred the dll by clicking add reference in the project p2.

I was happy to see the namespace of AppconClient when I tried to refer the dll by "using" keyword at the top of Program.cs in my project p2. And I could see the classes and methods of that dll inside my project p2. But when I tried to build the project p2 I got the error saying "The type or namespace name 'AppconClient' could not be found (are you missing a using directive or an assembly reference?)"

But the same dll can be referenced in any WebApplication and it works fine also.

Can anyone tell me what could be the reason and solution for this?