How to use SQLiteAsyncConnection from the async PCL version of SQLite?

后端 未结 2 1857
执念已碎
执念已碎 2021-02-07 13:27

I\'m using a PCL version of Sqlite.net from https://github.com/oysteinkrog/SQLite.Net-PCL

However, I\'m unable to get the DB connection setup. The SQliteAsyncConne

2条回答
  •  情书的邮戳
    2021-02-07 14:28

    I've had problems with this too. To meet Johnbot's answer which is correct I am adding how I have used this library and got it to work. I did not really understand the NuGet packages, so I did it manually.

    1. Download the project https://github.com/oysteinkrog/SQLite.Net-PCL

    2. Load the solution in VS2015, set to release mode and create the dlls for:

    a) SQLite.Net

    b) SQLite.Net.Async

    c) SQLite.Net.Platform.WinRT which is for Windows 10 universal apps, or the platform you need.

    Ensure you have these references in your project.

    SQLIte for Universal App is installed from VS Tools / Extensions and Updates. Once installed it is referenced under Universal Windows / Extensions along with the Visual C++ 2015 which is also required.

    Good luck!

提交回复
热议问题