0

I know that LinqToTwitter supports UWP and it support Xamarin.Forms, but using the UniversalAuthoriser (which supports UWP) namespace is not available when called from within the PCL in my Xamarin.Forms project. It works if I place the code in the UWP project though, but then I don't have a way of referencing that from the PCL. Any help would be appreciated. I am using Linq2Twitter v4.x

1 Answers1

2

It doesn't appear that L2T supports the PCL profile used by Xamarin Forms.

However, anytime you have a library that works in your platform project but does not work in a PCL project, you can expose that behavior in your PCL via DependencyService.

You could also try building the source for L2T in a PCL project that uses the Xamarin Forms profile.

Jason
  • 86,222
  • 15
  • 131
  • 146
  • Hi thank you for your response, I will look into the DependencyService you suggested but just a small clarification. L2T works in a Xamarin.Forms PCL when targetting iOS, Android, and WP8.1 but it doesn't support a specific namespace that I need to use for targeting UWP. – user2240342 Apr 25 '16 at 11:10
  • Hi Jason, I used DependencyService like you suggested and it works great. Thanks for introducing me to this useful feature. – user2240342 Apr 25 '16 at 15:02
  • Glad it worked. Please upvote and accept the answer if it was helpful – Jason Apr 25 '16 at 15:17