<i id='UxyDa'><tr id='UxyDa'><dt id='UxyDa'><q id='UxyDa'><span id='UxyDa'><b id='UxyDa'><form id='UxyDa'><ins id='UxyDa'></ins><ul id='UxyDa'></ul><sub id='UxyDa'></sub></form><legend id='UxyDa'></legend><bdo id='UxyDa'><pre id='UxyDa'><center id='UxyDa'></center></pre></bdo></b><th id='UxyDa'></th></span></q></dt></tr></i><div id='UxyDa'><tfoot id='UxyDa'></tfoot><dl id='UxyDa'><fieldset id='UxyDa'></fieldset></dl></div>
      <bdo id='UxyDa'></bdo><ul id='UxyDa'></ul>
  • <tfoot id='UxyDa'></tfoot>

      <small id='UxyDa'></small><noframes id='UxyDa'>

        <legend id='UxyDa'><style id='UxyDa'><dir id='UxyDa'><q id='UxyDa'></q></dir></style></legend>
      1. UWP 中 SQLite 的 PCL 与 .NET Standard 库

        时间:2023-06-25
          <tbody id='oTExT'></tbody>

        • <i id='oTExT'><tr id='oTExT'><dt id='oTExT'><q id='oTExT'><span id='oTExT'><b id='oTExT'><form id='oTExT'><ins id='oTExT'></ins><ul id='oTExT'></ul><sub id='oTExT'></sub></form><legend id='oTExT'></legend><bdo id='oTExT'><pre id='oTExT'><center id='oTExT'></center></pre></bdo></b><th id='oTExT'></th></span></q></dt></tr></i><div id='oTExT'><tfoot id='oTExT'></tfoot><dl id='oTExT'><fieldset id='oTExT'></fieldset></dl></div>
          <tfoot id='oTExT'></tfoot>
        • <small id='oTExT'></small><noframes id='oTExT'>

          <legend id='oTExT'><style id='oTExT'><dir id='oTExT'><q id='oTExT'></q></dir></style></legend>

              • <bdo id='oTExT'></bdo><ul id='oTExT'></ul>
                  本文介绍了UWP 中 SQLite 的 PCL 与 .NET Standard 库的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  我有以下问题.

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

                  I use Portable library in my UWP application (Portable library is shared with Xamarin app). This portable library references SQLite. In this Portable library I also use Prism and Unity. For that reason I still can't upgrade them to .NET Standard. SQLite library I use is SQLite-net-pcl version 1.4.18.

                  在我的 UWP 应用中,我添加了相同的 nugget 包.问题是这个 nugget 包也支持 .net 标准,因此,当我构建我的 UWP 库时,我得到了与 netstandard1.1 不同版本的 SQLite-net.dll.

                  In my UWP app I add same nugget package. The problem is that this nugget package also support .net standard, as result, when I build my UWP library, I got different version of SQLite-net.dll, from netstandard1.1.

                  因此,当我运行应用程序时出现异常:

                  And as result of this, when I run application I got an exception:

                  无法加载文件或程序集'SQLite-net,版本=1.4.118.0,文化=中性,PublicKeyToken=null'.定位的程序集的清单定义与程序集引用不匹配.(例外来自HRESULT: 0x80131040)".这是可以理解的,因为 SQLite-net dll在 bin 文件夹中是不同的(它甚至有不同的版本).

                  "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,有没有办法强制它?任何其他想法如何解决它?

                  What I would want to do is to use PCL dll in my UWP app at this point, is there a way to force it? Any other ideas how to solve it?

                  推荐答案

                  在 Github

                  应该在1.5.166-beta

                  这篇关于UWP 中 SQLite 的 PCL 与 .NET Standard 库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  上一篇:如何使用 Pomelo.EntityFramework 的 JsonObject 下一篇:在已经运行 64 位 Oracle 数据库服务器的 Windows Server 上安装 Oracle 32 位客户端

                  相关文章

                1. <i id='UIEVA'><tr id='UIEVA'><dt id='UIEVA'><q id='UIEVA'><span id='UIEVA'><b id='UIEVA'><form id='UIEVA'><ins id='UIEVA'></ins><ul id='UIEVA'></ul><sub id='UIEVA'></sub></form><legend id='UIEVA'></legend><bdo id='UIEVA'><pre id='UIEVA'><center id='UIEVA'></center></pre></bdo></b><th id='UIEVA'></th></span></q></dt></tr></i><div id='UIEVA'><tfoot id='UIEVA'></tfoot><dl id='UIEVA'><fieldset id='UIEVA'></fieldset></dl></div>

                    • <bdo id='UIEVA'></bdo><ul id='UIEVA'></ul>
                  1. <legend id='UIEVA'><style id='UIEVA'><dir id='UIEVA'><q id='UIEVA'></q></dir></style></legend>

                      <small id='UIEVA'></small><noframes id='UIEVA'>

                    1. <tfoot id='UIEVA'></tfoot>