I created a portable C# class library in VS 2012 from sources of on older project, but if I try to add a reference to the new library in a unit test library targeting .NET 4.0, it says:
Unable to add a reference to project '(portable project name)'. The current project's target framework is not one of or compatible with the target frameworks of Portable Library project '(portable project name)'.
How do I test the portable library?
Thanks.
-John
Usually this happens when the portable library selected profile does not match the target platform chosen for a project that references it. What are the platforms that you are targeting from your PCL? Note that if you target .NET 4.0.3 and not .NET 4 then it can be referenced from a project that targets .NET 4.0.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.