SQLite Forum

Error "Unable to load DLL 'SQLite.Interop.dll'" with MSBuild 16.10.3
Login

Error "Unable to load DLL 'SQLite.Interop.dll'" with MSBuild 16.10.3

(1) By Zikoat on 2021-07-08 13:04:16 [source]

Hi,

If i run the tests in the attached project, right after a full project rebuild, they fail, but the second time i run them, they pass. Error message is:

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

I do this in rider by activating continouous testing which runs after build, and i then trigger a full rebuild. This makes the tests run right after a full rebuild, and then fail, but they do not fail right after saving an edit and then rerunning the tests.

what i have tried

I have updated msbuild to latest version (16.10.3)

I have tried both with and without setting CopySQLiteInteropFiles in my .csproj file.

I checked the MSBuild diagnostic logs, and the Target "CopySQLiteInteropFiles" is being built.

project i am using

https://drive.google.com/file/d/1QaJ26JfIR-KnQidnqSrY_sp6EXYSiql3/view?usp=sharing