PCL 与 UWP 中 SQLite 的 .NET 标准库对比

PCL vs .NET Standard library for SQLite in UWP

我有以下问题。

我在我的 UWP 应用程序中使用便携式库(便携式库与 Xamarin 应用程序共享)。这个可移植的库引用了 SQLite。在这个便携式库中,我还使用了 Prism 和 Unity。出于这个原因,我仍然无法将它们升级到 .NET Standard。我使用的 SQLite 库是 SQLite-net-pcl 版本 1.4.18.

在我的 UWP 应用程序中,我添加了相同的块包。问题是这个 nugget 包也支持 .net 标准,结果,当我构建我的 UWP 库时,我从 netstandard1.1.

得到了不同版本的 SQLite-net.dll

因此,当我 运行 申请时出现异常:

"Could not load file or assembly 'SQLite-net, Version=1.4.118.0, Culture=neutral, PublicKeyToken=null'. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)". Which is understandable, since SQLite-net dll in bin folder is different (it even has different version).

此时我想做的是在我的 UWP 应用程序中使用 PCL dll,有没有办法强制执行它?还有其他解决方法吗?

已在 Github

上提交此问题

应在 1.5.166-beta

中解决