How to install CocosSharp in Xamarin.Forms Protable project?

172 Views Asked by At

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

1

There are 1 best solutions below

3
On BEST ANSWER

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.