Open okt-wang opened 10 months ago
My first reaction to this issue is to say that Mono and packages.config are on my list of things I'm not sure I want to support at this point.
That said, if the e_sqlite3
native binary is compatible with your OS, I suspect this could be made to work by initializing the provider manually instead of using a bundle.
Rough steps:
Get rid of bundle_e_sqlite3 and provider.dynamic_cdecl.
Keep SQLitePCLRaw.core and SQLitePCLRaw.lib.e_sqlite3
Add SQLitePCLRaw.provider_e_sqlite3
Add code to initialize things, something like this:
SQLitePCL.raw.SetProvider(new SQLitePCL.SQLite3Provider_e_sqlite3());
What I don't know is whether the proper libe_sqlite3.so
will end up in "the right place" using whatever building tooling you've got. I'll stay pessimistic on that for the moment, but if you find the file and copy it to your build output directory, it should/might work.
What version of SQLitePCLRaw are you using? 2.1.7
If you are using one of the SQLitePCLRaw bundle packages, which one? bundle_e_sqlite3
What platform are you running on? What operating system? Which version? What CPU? Embedd Linux arm64, arm-cortex a53, run with mono 6.12.0.200
What target framework are you building for? .net framework 4.8.1
Are you on .NET Framework or the newer stuff (.NET Core, .NET 5+, etc)? .net framework 4.8.1
Are you using the command line, or an IDE? Which IDE? Which version of that IDE? Visual Studio 2019
Is this problem something that just started happening? For example, were things working well for you and then you updated something and then the problem showed up? What changed?
What is the exact error message you are seeing when the problem happens? My OS system is arm64, but it want to load linux-x64 version of libe_sqlite3.so, and show error of Library e_sqlite3 not found
Are you using
PackageReference
orpackages.config
? packages.configIf you are using mobile platforms, are you on classic/legacy Xamarin or on .NET 6 and higher? No
Sometimes other packages using SQLitePCLRaw cause problems when they are mixed together. What other packages are you including in your project? Only Microsoft.Data.Sqlite
How can we reproduce the problem you are seeing? Your issue will get attention much faster if you attach a minimal reproduction sample project.