简体   繁体   English

如何在Xamarin Forms项目中使用Couchbase.Lite-PCL?

[英]How to use Couchbase.Lite-PCL in a Xamarin Forms project?

I see there's a Couchbase.Lite-PCL in nuget which has been published recently. 我看到最近发布了nuget中的Couchbase.Lite-PCL。 Is this capable of running in the PCL? 这可以在PCL中运行吗? Anyone knows how to make it work? 任何人都知道如何使其工作吗? I couldn't find any documentation on this. 我找不到关于此的任何文档。

It is not an official NuGet package, so your milage may vary. 它不是官方的NuGet软件包,因此您的里程可能会有所不同。

It does have the dll's in a portable folder, and the dll's are added fine to a PCL and the project seems to build. 它的确在便携式文件夹中包含dll,并且该dll也已很好地添加到PCL中,并且该项目似乎已构建。

Try it it, it might work fine, but don't expect any direct support from the couchbase people. 尝试一下,它可能会正常工作,但是不要指望沙发上的人会提供任何直接支持。

Alternatively you could implement an Interface in your PCL, which you implement per platform with the methods you need from the official couchbase nuget. 或者,您可以在PCL中实现一个接口,您可以使用官方的Couchbase nuget中所需的方法在每个平台上实现该接口。 Then inject that platform specific implementation at runtime through the IoC container Xamarin.Forms provide. 然后在运行时通过Xomarin.Forms提供的IoC容器注入特定于平台的实现。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 Xamarin表单:如何在PCL项目中使用嵌入式资源进行图像处理 - Xamarin Forms: How to use Embedded Resources in PCL Project for Image 如何将MongoDB与Xamarin.Forms PCL一起使用(共享项目) - How to use MongoDB with Xamarin.Forms PCL (Shared project) 如何使用 xamarin.forms pcl 或将其转换为 xamarin 本机 - How to use or convert xamarin.forms pcl into xamarin native 如何在Xamarin.forms中使用Float Action Button与PCL项目表单代码共享? - How to use a Float Action Button in Xamarin.forms with a PCL project form code sharing? 如何在Xamarin Forms PCL项目上阅读文本文件? - How to read a text file on Xamarin Forms PCL project? 如何在PCL项目中对Xamarin.Forms.GoogleMaps Pin进行群集 - How to Cluster Xamarin.Forms.GoogleMaps Pin in PCL Project 如何在Xamarin.Forms PCL中使用System.Security.Cryptography - How to use System.Security.Cryptography in Xamarin.Forms PCL 如何在Xamarin Forms PCL中的事务中使用SQLITE异步扩展? - How to use SQLITE async extensions within a transaction in a Xamarin Forms PCL? Xamarin.Forms(PCL)项目中的NotlmplementedException - NotlmplementedException in Xamarin.Forms (PCL) project 加载Xamarin时出错表格PCL项目 - Error while loading Xamarin forms PCL project
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM