meghana
meghana

Reputation: 907

dll reference not getting copied into Bin folder

I created a Solution with 4 projects in it. 1 Console Application and 3 Class Libraries.

Console App Name : MyProject (Dependencies on Common and Domain and Logic)
Class Library 1 : MyProject.Logic (Dependencies on Common and Domain)
Class Library 2 : MyProject.Domain 
Class Library 3 : MyProject.Common

Now I add References of MyProject.Domain and MyProject.Common to MyProject.Logic Project using References --> Add Refernce --> Project and select Refernces

and Added References of MyProject.Domain, MyProject.Common and MyProject.Logic to MyProject using References --> Add Refernce --> Project and select Refernces

i Aslo verified Properties of all three references ,they all having "Copy Local" set to True

When I Build/ Rebuid MyProject , it didn't find references for MyProject.Common and MyProject.Logic but it gets the Reference for MyProject.Domain. Therefore Dll's of MyProject.Common and MyProject.Logic do not get copied to the bin folder of MyProject

I have seen similar forums on web.. but I didn't find any solution.

Anybody have any idea on this??

Upvotes: 1

Views: 3088

Answers (1)

meghana
meghana

Reputation: 907

Thanks All for your replies,

the Proejct --> MyProject.Common was using log4net assembly and so target framework of MyProject.Common was .Net Framework 4 ,

where as target framework of MyProject was .Net Framework 4 Client Profile .

so i Changed Traget Framework of MyProject to .Net Framework 4 using

Right Click on MyProject --> Properties --> Application Tab --> Select Target Framework: to .Net Framework 4

IF anybody have such issue then also check targets of your all projects referenced with same framework.

Upvotes: 2

Related Questions