Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Xamarin.Forms could not install package

When creating a new solution within Xamarian studio I get this error

Could not install package 'Xamarin.Forms 1.0.6186'. You are trying to install this package into a project that targets '.NETFramework,Version=v4.5,Profile=Profile78', but the package does not contain any assembly references or content files that are compatible with that framework. For more information, contact the package author.

Is there a certain version of .Net that Xamarian Forms requires for it to be included in the solution? I've tried searching in their documentation but I'm only seeing marketing and not real in depth documentation.

like image 739
user3174913 Avatar asked May 30 '14 15:05

user3174913


Video Answer


2 Answers

I had a similar issue using Visual Studio and I've found that the following combination in the PCL works:

  • .NET Framework 4.5
  • Windows Phone Silverlight 8
  • Xamarin.Android
  • Xamarin.iOS
like image 92
gregswiss Avatar answered Sep 21 '22 11:09

gregswiss


You have created the wrong project type, you created a normal Windows app, and I assume you are targeting iOS/Android or Mac.

Create the project with the correct type and it should work correctly.

like image 21
Gusman Avatar answered Sep 18 '22 11:09

Gusman