I have 3 class library projects. Lets call them A, B & C. I have added project reference
of A & B into the project C.
A & B are building without any error or warning.
Code(Class file) from the project C uses public classes from A & B. When I add project reference in C and look at the class file (before building project C) in the C project, I can clearly see that all the classes and namespaces from A & B are resolved. When I hover my mouse on the class name (class from either A or B), it shows the correct namespace of it too.
I have set Copy Local
property to True
on both the project references.
However,
bin\debug
folder of the project C. Why does not it copy the reference? (I have seen several questions about this problem but none of the solutions provided to them have worked for me)The Reference Path property tells Visual Studio where to look for referenced assemblies; the default is the path you used when you added the reference.
The problem is solved. Problem was that project C was targetting '.NET 4 Client profile' framework and A, B were targetting '.NET 4' framework. When i changed target framework of C, everything built successfully.
Answer posted to this question by 'Registered User' helped me.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With