How to reference the portable test class library VS 2012 from unit test?

I created a portable C # class library in VS 2012 from sources from an older project, but if I try to add a link to a new library in the unit test library oriented to .NET 4.0, it says:

Cannot add project link (name of portable project). ' The current target structure of the project is not one of or incompatible with the target structures of the Portable Library project "(name of the portable project)".

How to check portable library?

Thanks.

-John

+6
source share
1 answer

This usually happens when the selected portable library profile does not match the target platform selected for the project that references it. What are the platforms that you are targeting your PCL? Note that if you are targeting .NET 4.0.3 rather than .NET 4, you can refer to it from a project that is designed for .NET 4.0.

+3
source

All Articles