I am not able to create a database using SQLite with my Metro application.
Description: I continue to receive a runtime exception on a failure to load SQLite3.dll.
Observation: I observed that the database directory never gets created in the app package's LocalState directory. After observing this, I literally implemented file path creation at runtime and dropped the sqlite3.dll in the intended location.
Yet, I still receive an exception on failed to load SQLite3.dll.
- My CRUD code that leverages SQLite compiles fine.
- SQLite dependencies (packages.config, SQLite.cs, and sqlite3.dll) are located in a separate metro class library instead of the application's executable project.
- The sqlite3.dll is based on the ARM processor.
- The sqlite3.dll is set to Content, Copy Always.
Code:
SQLiteAsyncConnection connection = new SQLiteAsyncConnection(DATABASE_DIRECTORY_NAME);
return await connection.CreateTableAsync<Service>();
Please help...