NLOG, Log to SQLite on windows Phone 8
我有一个要添加NLog的Windows Phone应用程序。我想将Nlog中的数据放入SQLite数据库中。
如果我正在WindowsForm应用程序中执行此操作,那没问题,我只需在Nuget中添加NLog和System.Data.SQLite。但是在Windows Phone 8上该怎么办?
我已经准备好Nlog。 (下载并手动添加参考),但是如何将System.Data.SQLite添加到项目中?当我尝试从Nuget安装它时,出现以下错误:
"Could not install package 'System.Data.SQLite.Core.MSIL 1.0.94.0'.
You are trying to install this package into a project that targets
'WindowsPhone,Version=v8.0', but the package does not contain any
assembly references or content files that are compatible with that
framework. For more information, contact the package author."
Jens Borrisholt
我最近刚刚写了一篇有关如何在Windows Phone 8(主要是8.1)中使用SQLite的文章,但应该相同。您可以在这里找到本文:http://www.brainchest.net/?p=1401
简而言之,您需要执行以下操作: