SQLite Forum

Loading bundled extensions in dotnet on linux
Login
Hi! 

Thank you for your answer. :-)

Unfortunately, it doesn't work. If I remove the ".dll" part, it will break on both Linux and Windows.

The main reason is that if you inspect the output directory, all the "native" dependencies have been named after Windows.

For example, from any sqlite project dir

```
> ls -R bin/Release/net5.0/runtimes/
bin/Debug/net5.0/runtimes/:
linux-x64  osx-x64  win-x64  win-x86

bin/Debug/net5.0/runtimes/linux-x64:
native

bin/Debug/net5.0/runtimes/linux-x64/native:
SQLite.Interop.dll

bin/Debug/net5.0/runtimes/osx-x64:
native

bin/Debug/net5.0/runtimes/osx-x64/native:
SQLite.Interop.dll

bin/Debug/net5.0/runtimes/win-x64:
native

bin/Debug/net5.0/runtimes/win-x64/native:
SQLite.Interop.dll

bin/Debug/net5.0/runtimes/win-x86:
native

bin/Debug/net5.0/runtimes/win-x86/native:
SQLite.Interop.dll

```

I also checked the contents of the .nupkg this is the way it is intended to be.