Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Xamarin Package Installation Error

When creating a new Blank Xamarin.Form Portable project in Visual Studio 2015, I get a "Package Installation Error"...

Could not add all the required pacakges to the project. The following packages failed to install from C:....Xamarin\4.0.3.214\Packages:

Xamarin.Form.2.0.0.6482: Could not install package Xamarin.Form.2.0.0.6482.

You are trying to install this package into a project that targets .NETFramework,Version=v4.0

enter image description here

like image 441
A. Sinha Avatar asked Nov 08 '22 15:11

A. Sinha


1 Answers

Looks like you might need to set the profile of the PCL correctly.

These are the options that I get when creating a new Xam.Forms app:

enter image description here

From this question They have set the profile like so:

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 87
Iain Smith Avatar answered Dec 25 '22 06:12

Iain Smith