加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 百科 > 正文

c# – 为什么在将SQLite Nuget Package添加到LINQPad时会出现Dll

发布时间:2020-12-15 18:18:39 所属栏目:百科 来源:网络整理
导读:我已将System.Data.SQLite.Core NuGet包添加到我的LINQPad 5 Query(Premium)中,然后尝试执行以下操作: new SQLiteConnection(":memory:").Dump(); 但我得到: DllNotFoundException: Unable to load DLL ‘SQLite.Interop.dll’: The specified module coul
我已将System.Data.SQLite.Core NuGet包添加到我的LINQPad 5 Query(Premium)中,然后尝试执行以下操作:
new SQLiteConnection(":memory:").Dump();

但我得到:

DllNotFoundException: Unable to load DLL ‘SQLite.Interop.dll’: The
specified module could not be found. (Exception from HRESULT:
0x8007007E)

如何告诉LINQPad在哪里找到SQLite Native DLL?

请注意我不想使用IQ驱动程序.

解决方法

此库未以标准方式引用,因为它是原生的,需要X86和X64的不同图像.

LINQPad中的解决方法是找到以下文件夹:

%localappdata%LINQPadNuGet.FW46System.Data.SQLite.CoreSystem.Data.SQLite.Core.1.0.99.0buildnet46

并将X86和X64子文件夹复制到LINQPad.exe所在的文件夹中.

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读