应用SqlitePCL应该注意的问题

如果使用SqlitePCL对一个Portable的工程进行Sqlite操作,记得两点:

  1. 把这个Project所在的Solution下的全部Project(至少是调用到SqlitePCL的)都应用上Sqlite的Nuget。

  2. 加入Sqlite3.dll到工程的根目录下,属性Content & Copy Always。

不然很可能会出现下面的问题:

A SQLite Wrapper assembly for the current platform was not found. Ensure that the current project references both SQLitePCL and the following platform-specific assembly: SQLitePCL.Ext.

作者:snowell原文地址:https://segmentfault.com/a/1190000002647220

%s 个评论

要回复文章请先登录注册