[英]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.