beewest
beewest

Reputation: 4856

Xamarin.forms Could not refer a Portable Project.

Using Visual Studio 2017, Xamarin.Forms project is successfully created with Code Sharing Strategy is PCL.

enter image description here

A class library (portable) ClassLibrary1 is added to the solution:

enter image description here

It failed when it refer the new library (ClassLibrary1) in the previous library (portable).

enter image description here

Any idea?

Upvotes: 0

Views: 50

Answers (1)

Ken Tucker
Ken Tucker

Reputation: 4156

Open the new class library project (classlibrary1) project file in notepad. (backup file first) and edit the ProfileId and change it to 259. Once the class library profile id is the same as the xamarin forms pcl you can add a reference to it

<TargetFrameworkProfile>Profile259</TargetFrameworkProfile> 

Upvotes: 3

Related Questions