使用VB.NET的Metro App中的SQLite.Net-PCL - 缺少类

时间:2014-09-12 22:33:51

标签: vb.net sqlite microsoft-metro

我已将SQLite.Net-PCL v2.3.0添加到我的Metro应用程序中,但似乎缺少一些课程。

Dim MyPlatform = new SQLite.Net.Platform.WinRT.SQLitePlatformWinRT()
  Using connection = New SQLiteConnection(MyPlatform , _dbPath)
End Using

**SQLite.Net.Platform.WinRT.SQLitePlatformWinRT**课程无法识别。 尝试首先添加SQLite.Net.Platform.WinRT但没有成功。 IT说:
 "要使用此软件包,您需要安装一个平台软件包或编写自己的ISQLitePlatform实现。" (摘自https://www.nuget.org/packages/SQLite.Net.Platform.WinRT/) 实现我自己的界面意味着什么?我知道我的平台是WinRT,为什么我不能使用那个版本?

任何示例代码或解决方案?

1 个答案:

答案 0 :(得分:0)

您必须在所有项目中下载并复制sqlite3.dll。请参阅以下文档:

https://sqlitepcl.codeplex.com/documentation

它将解释每种类型的项目