我创建了以下 Github 存储库来记录问题: https ://github.com/red-swan/fake-sqlite-problem
我无法sqlite从FAKE依赖Paket. 将nuget包添加System.Data.SQLite到paket.dependencies我可以open System.Data.SQLite但尝试从build.fsx文件构建数据库时,我收到以下错误:
(Unable to load DLL 'SQLite.Interop.dll' or one of its dependencies: The specified module could not be found. (Exception from HRESULT: 0x8007007E))
SQLite.Interop.dll是一个位于依赖runtimes\win-x64\native\netstandard2.0的System.Data.SQLite依赖System.Data.SQLite.Core。#r尝试使用 and语句直接引用它build.fsx失败并出现错误:
Error opening binary file ... bad cli header, rva
我不确定一切应该如何解决,但是从实际运行数据库创建fsproj就可以了,所以我相信它与FAKEorPaket分辨率有关。
如果您熟悉FAKE,这听起来合理吗?你知道如何解决这个问题吗?
要重现错误:
git clone https://github.com/red-swan/fake-sqlite-problem.git