繁体   English   中英

无法在 UWP Xamarin.Forms 中创建参考 SQLiteNetExtensions 的表

[英]Can't create tables with some reference to SQLiteNetExtensions in UWP Xamarin.Forms

I am trying to implement the SQLiteNetExtensions.Async nuget in a Xamarin.Forms project but when I try to create a table with some reference to SQLiteNetExtensions I get the following exception when trying to create a table ( only happens in UWP, in the rest of平台运行良好):无法加载文件或程序集“SQLite-net,版本=1.4.118.0,文化=中性,PublicKeyToken=null”。 系统找不到指定的文件。

我使用这些版本:

SQLiteNetExtensions.Async 版本 2.1.0: https://www.nuget.org/packages/SQLiteNetExtensions.Async/

Xamarin.Forms 版本 5.0.0.2012

我已经设法解决了这个问题,在从原始存储库下载 SQLite-Net Extensions 的源代码后,我开始将目标框架从 SQLiteNetExtensions 项目的 .NET 标准 1.1 版本更新到 .NET 标准 2.0,并从原始存储库更新 SQLiteNetExtensionsAsync我已经为我导入到我的项目中的这两个项目创建了一个本地 nuget。

我还在原始存储库中发布了一个拉取请求以集成修复: https://bitbucket.org/twincoders/sqlite-net-extensions/pull-requests/32/fix-crash-in-uwp-for-xamarinforms

暂无
暂无

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

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