Quantcast
Channel: Xamarin.Forms — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 58056

ServiceStack.Client is not adding in Xamarin.Forms PCL project

$
0
0

Hello All,

I am using Xamarin.Forms for my project. I will use ServiceStack client as my Web service is built on ServiceStack. I found ServiceStack library for Xamarin (https://github.com/ServiceStackApps/HelloMobile). Unfortunately ServiceStack.Client is not adding in my PCL project but I can add the library in individual iOS and Android project. I got the message while adding the packages through NuGet -

"Could not install package 'ServiceStack.Text 4.0.38'. You are trying to install this package into a project that targets 'portable-net45+win+wp80+MonoTouch10+MonoAndroid10+xamarinmac20+xamarinios10', 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."

But I want to add the ServiceStack.Client library in PCL project instead of platform (iOS, Android) projects as I am using Xamarin.Forms to share almost 100% code. I am in the middle of my project where I putted all of my code in PCL project.

Can any give me any suggestion how I can add ServiceStack.Client library in my PCL project instead of platform specific project.

Thanks,
Arefin


Viewing all articles
Browse latest Browse all 58056

Trending Articles