I'm trying to use Sqlite with C#. I'm getting a DllNotFound exception when running the project from the editor:
System.DllNotFoundException: e_sqlite3 assembly:<unknown assembly> type:<unknown type> member:(null)
As you can see, it's failing to find
e_sqlite3.dll, which has multiple versions for different platforms. In the Debug build output directory, all the other DLLs I'm using live in one place, but
e_sqlite3.dll is split into different versions per architecture - it looks a bit like this:
- ...a few other dependencies...
If I copy the
e_sqlite3.dll for my system (win-x64) and paste it into the
Debug directory, all is well, but I feel like I'm probably doing something wrong in my project file or somewhere else in order to cause this.
For reference, my project file:
<!--The following properties were overriden during migration to prevent errors.
Enabling them may require other manual changes to the project and its files.-->
<PackageReference Include="Microsoft.Data.Sqlite" Version="6.0.1" />
<Reference Include="System" />
Does anyone have any idea what I might need to tweak to get Godot to locate the relevant version of the dll itself?