我已将 System.Data.SQLite.Core
NuGet 包添加到我的 LINQPad 5 查询(高级版),然后尝试执行以下操作:
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 驱动程序。
最佳答案
此库未以标准方式引用,因为它是 native 的并且需要针对 X86 和 X64 的不同图像。
LINQPad 中的解决方法是找到以下文件夹:
%localappdata%\LINQPad\NuGet.FW46\System.Data.SQLite.Core\System.Data.SQLite.Core.1.0.99.0\build\net46
并将X86和X64子文件夹复制到LINQPad.exe所在的文件夹中。
关于c# - 为什么在将 SQLite Nuget 包添加到 LINQPad 时出现 DllNotFoundException?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/34816986/