简体   繁体   中英

LinqToTwitter doesn't work in PCL in Xamarin.Forms for UWP

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

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM