Xamarin.Forms.Plugins icon indicating copy to clipboard operation
Xamarin.Forms.Plugins copied to clipboard

Cannot install plugin to PCL

Open yshteinm opened this issue 8 years ago • 16 comments

Severity Code Description Project File Line Suppression State Error Could not install package 'Xam.Plugins.Forms.Svg 1.0.0.27'. You are trying to install this package into a project that targets '.NETPortable,Version=v4.5,Profile=Profile259', 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.

What are supported PCL profiles?

yshteinm avatar Dec 21 '16 22:12 yshteinm

Same problem here

BenDevelopment avatar Jan 10 '17 14:01 BenDevelopment

I was able to download the repro, the update, build, and run the SVG project on iOS and Android. No issues at all. Targets all the latest Xamarin Forms NuGet packages and .NET 4.5

Thank you for such a great tool.

Karl

ghost avatar Jan 11 '17 13:01 ghost

I have same problem also. PCL projects only.

chris-ryu avatar Jan 20 '17 11:01 chris-ryu

@kdawg1406 , but did you install it in PCL? How did you get it work?

riandesign avatar Jan 26 '17 12:01 riandesign

@riandesign I was able to download the repro, the update, build, and run the SVG project on iOS and Android. No issues at all. Targets all the latest Xamarin Forms NuGet packages and .NET 4.5

Yes, I have a PCL, Xamarin Forms app. Works great.

ghost avatar Jan 26 '17 16:01 ghost

@kdawg1406, Have you installed 1.0.0.27? I think current version not compatible with Xamarin.Forms (2.3.x)

Install failed. Rolling back... Package 'Xam.Plugins.Forms.Svg.1.0.0.27 : Xamarin.Forms [2.0.0.6490, )' does not exist in project '...'

chris-ryu avatar Feb 05 '17 02:02 chris-ryu

Same problem here with version 1.0.0.27 and XF version 2.3.3.193: Package 'Xam.Plugins.Forms.Svg.1.0.0.27 : Xamarin.Forms [2.0.0.6490, )' does not exist in project xyz

L4rS6 avatar Feb 10 '17 11:02 L4rS6

I solved it by setting an other Profile. Open options --> Build: General and select a different Profile (I selected PCL 4.5 - Profile49). Now you can install the pkg.

L4rS6 avatar Feb 10 '17 11:02 L4rS6

Same problem here

kikolopes90 avatar Feb 23 '17 11:02 kikolopes90

I already solved this problem! 👍

https://forums.xamarin.com/discussion/84642/cannot-remove-windows-phone-silverlight-in-visual-studio#latest

kikolopes90 avatar Feb 24 '17 14:02 kikolopes90

So on which profile did you set it? And will it have any consequences?

wiesnery avatar Feb 27 '17 08:02 wiesnery

For example, "Profile259" to "Profile78" and install nuget, then you can change back to "Profile259"

kikolopes90 avatar Feb 27 '17 10:02 kikolopes90

KeyboardOverlap for Xamarin.Forms not work!

It's the same problem =/

kikolopes90 avatar Mar 17 '17 18:03 kikolopes90

I had the same issue, I removed the Windows Phone 8.1 target and the installation succeded. I'm using .Net 4.5 with Xamarin Forms v2.3.3.193

jeremymelchor avatar Mar 22 '17 14:03 jeremymelchor

On your PCL project solution, Right click and open on Text editor and try yo change Profile111 to Profile78.

rapcgutz avatar Jun 21 '17 10:06 rapcgutz

https://github.com/paulpatarinski/Xamarin.Forms.Plugins/issues/107

LightVolk avatar Jul 06 '17 07:07 LightVolk