I\'d like to know, how can I use SQLite-Net Extensions within Xamarin.Mac project?
I\'m using Xamarin Studio 5.9.5
, I\'ve created project from Mac->App->Emp
The problem was in project type I choose. I choose Empty project
that targets the new Unified API
. For that project SQLiteNetExtensions
package doesn’t have required libraries, such as SQLite.Net.Platform.Generic
.
To solve that problem you could either choose project that targets Classic API
(for that project SQLiteNetExtensions
contains SQLite.Net.Platform
) or create Unified API
project and after adding SQLiteNetExtensions
package, manually add SQLite.Net.Platform
dlls to references.
Although, I'm not sure why these .Platform
libraries are included in SQLiteNetExtensions
package for Classic API
and not for Unified API
This is how it works in my project:
dbConnection = new SQLiteConnection(new SQLite.Net.Platform.Generic.SQLitePlatformGeneric(), databasePath);