0
votes

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?

1

1 Answers

3
votes

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>