0

I created a Blank App (Xamarin.Forms Portable). I set up and run HAXM, Android and iOS projects works great. I wanted to add a CocosSharp view, so I tried to install CocosSharp nuget package. But I'm getting this errors:

enter image description here

Is this another bug? How can I fix it? I just wanted to add a CocosSharp to default, blank Xamarin.Forms.

Thanks

EDIT: When I try to uncheck "Windows Phone Silverlight " I have an error: enter image description here

Ish Thomas
  • 2,270
  • 2
  • 27
  • 57

1 Answers1

2

The default (template created) Xamarin.Forms PCL-based project targets Profile259 and that includes SilverLight support which is not supported by CocosSharp.

Change your PCL-based project to Profile111 which removes Silverlight support and you will be able to add the CocosSharp package.

SushiHangover
  • 73,120
  • 10
  • 106
  • 165
  • Thanks, but how can I change the profile of the project? Is it for every project (iOS and Android too) or just PCL ? – Ish Thomas Jan 16 '17 at 04:37
  • @IshThomas Just the PCL-based one(s), not the native projects. Open the project properties and change it there: https://msdn.microsoft.com/en-us/library/gg597391(v=vs.110).aspx#Anchor_3 – SushiHangover Jan 16 '17 at 04:40
  • I can't see anything saying "Profile" "259" or "111" neither in the project properties nor in the link. But I can see "Targets", 'Silverlight 5' is unchecked. 'Windows Phone Silverlight 8' is checked, but I can't uncheck it.. "The project's targets cannot be changed." error appears – Ish Thomas Jan 16 '17 at 04:55