sub*_*bha 12 c# sqlite windows-runtime
我正在使用Xamarin.Forms开发本机应用程序.但我现在面临的问题与Xamarin无关.我添加了新的Windows Phone项目
right-click > Add > New Project -> Windows Phone Apps -> Blank App(Windows Phone).
在我在Visual Studio premium 2013中的现有Xamarin项目中.我使用sqlitenet pcl进行数据库连接.我的项目中有以下代码.
public ISQLitePlatform CreateSqlitePlatformInterface()
{
return new SQLitePlatformWinRT();
}
Run Code Online (Sandbox Code Playgroud)
当它在行上面执行时,它会抛出异常
An exception of type 'System.DllNotFoundException' occurred in SQLite.Net.Platform.WinRT.DLL but was not handled in user code
Additional information: Unable to load DLL 'sqlite3': The specified module could not be found. (Exception from HRESULT: 0x8007007E)
Run Code Online (Sandbox Code Playgroud)
这已被问了很多次,我尝试了所有建议的解决方案,但我仍然无法解决它.
我的Packages.config
<package id="SQLite.Net-PCL" version="3.0.5" targetFramework="wpa81" />
<package id="Sqlite-Winrt" version="3.8.7.1" targetFramework="wpa81" />
<package id="Xamarin.Forms" version="1.4.2.6359" targetFramework="wpa81" />
Run Code Online (Sandbox Code Playgroud)
以上是我从Nuget下载的软件包.我错过了什么吗?我还需要添加什么?
我也尝试过:
我的项目参考:

BCA*_*BCA 10
在2016年3月更新到Windows 10和Visual Studio 2015之后,我遇到了这种错误的不同风格:我的应用程序在部署到我的桌面时运行正常,但在使用System.DllNotFoundException("无法加载DLL的sqlite3'")时崩溃了部署到我的平板电脑(即使在使用最新更新更新平板电脑操作系统之后).所以我解决问题的步骤如下:
直到最后一步它才真正解决了问题.