Fitbit.NET
Fitbit.NET copied to clipboard
Issues installing the package with Nuget in Xamarin studio
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?
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
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.
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
@mariosangiorgio if this is still required please try and the new netstandard implementation. see v3 branch :-)