Fitbit.NET icon indicating copy to clipboard operation
Fitbit.NET copied to clipboard

Issues installing the package with Nuget in Xamarin studio

Open mariosangiorgio opened this issue 10 years ago • 4 comments

I am trying to add this package to a Xamarin studio solution using Nuget.

Unfortunately it fails with the following error:

Could not install package 'Fitbit.NET 1.0.0'. You are trying to install this package into a project that targets '.NETFramework,Version=v4.0', 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.

Have you ever seen it?

mariosangiorgio avatar Jun 20 '14 21:06 mariosangiorgio

I believe the problem is with the RestSharp dependency which isn't Xamarin or PCL compatible. That said, there are versions of it that are and for the basic usage of RestSharp we are using (the auth and then the automatic class object hydration of responses) any of the RestSharp versions should work. Head on over there and see if you can swap out the standard referenced one we include with another and do let me know!

https://github.com/restsharp/RestSharp

Also note that there's another branch called "portable" which shows some promise but doesn't have the auth stuff in it yet.

--Aaron

aarondcoleman avatar Jun 29 '14 16:06 aarondcoleman

This should work once we get the new version done and set up as a NuGet package, being PCL compatible I'd imagine Xamarin wouldn't have a problem.

aarondcoleman avatar Jan 22 '16 19:01 aarondcoleman

The old version won't work, there's no reason I'm aware of that the new version won't but will need testing at some point but you're more than welcome to give the latest pre release ago and let us know.of any issues - http://www.nuget.org/packages/Fitbit.NET/2.1.1-RC3

WestDiscGolf avatar May 27 '16 19:05 WestDiscGolf

@mariosangiorgio if this is still required please try and the new netstandard implementation. see v3 branch :-)

WestDiscGolf avatar Aug 29 '17 19:08 WestDiscGolf