The PreLoadSQLite_LibraryFileNameOnly setting is not designed to be used in this way. I think in order to accomplish what you are wanting, the existing P/Invoke layer would have to switch to dynamically created delegates, i.e. no DllImport and no need for a constant SQLITE_DLL. That would be a large change in behavior, which would risk breaking backwards compatibility.