1
votes

Brand new install of Visual Studio Pro 2017, Prism Template Pack, and Xamarin Forms.

I am trying to create my first App and things are going very well so far. I have all the views, view models, etc. set and the app is functioning perfectly. Now I am trying to add some more PCL projects to the solution for things like Domain or Services, etc. so I can keep all the parts separated.

I can create a Xamarin Forms PCL just fine and add all my classes, etc. Problem comes when I try to add a reference to the Domain project from the main PCL project in the solution. I get the "targets of pcl don't match" error message.

This is what I am using to create the new PCL project: This is what I am using to create the new PCL project:

This is the error message I receive when trying to add the PCL project reference: This is the error message:

What am I missing?

Here is the main PCL created with the template pack properties: enter image description here

Here is the newly added PCL project properties: enter image description here

PCL properties for template: enter image description here

1
do all of your PCL projects use the same Profile? - Jason
Added 2 more pictures in original post for properties of the 2 PCL projects. - BTI-Doug
I will say that when I used the Prism Template Pack, I only chose ios and android ... why are the Windows phone targets in there. How can I remove just the Windows targets? - BTI-Doug

1 Answers

2
votes

Since you are missing the Windows Phone & Silverlight targets in your IDE for some reason, this is a potential workaround:

Open up your .csproj files and make sure the TargetFrameworkProfile elements match up in both PCL projects.

Is it possible that you didn't install the tools for Windows Phone development when you installed Visual Studio?