System.DllNotFoundException on Mono SQLite

后端 未结 5 538
臣服心动
臣服心动 2020-12-15 00:03

I\'ve been trying to figure this out lately. It is working on my Windows machine, where I got SQLite from NuGet, but...

When I put System.Data.SQLite.dll

5条回答
  •  Happy的楠姐
    2020-12-15 00:22

    I tried all the above option but those options could not solve SQLite DLL problem, It may be because I am using ubuntu 18 version, So tried other option and here the steps,

    1) Download SQLite source code from the https://system.data.sqlite.org/downloads/1.0.111.0/sqlite-netFx-full-source-1.0.111.0.zip

    2) unzip source code and cd to unzip directory

    3) Run the following command in the terminal,

    xbuild /p:Configuration=Release /p:UseInteropDll=false /p:UseSqliteStandard=true ./System.Data.SQLite/System.Data.SQLite.2010.csproj

    4) Above command would create a dll file at following path,

    sqlite-netFx-full-source-1.0.111.0/bin/2010/ReleaseMonoOnPosix/bin

    5) Copy System.Data.SQLite.dll to your project bin folder.

    6) Clean project and build again.

    I hope this would help.

提交回复
热议问题