无法加载DLL sqlite3的“SQLite中的网络平台的WinRT [英] Unable to load DLL 'sqlite3' in SQLite Net Platform WinRT
问题描述
我在开发本地应用程序使用的Xamarin.Forms过程。但我现在面临的问题是不与Xamarin有关。我通过
I am in process of developing native app using Xamarin.Forms. But the problem I am facing now is not related with Xamarin. I added new Windows Phone project by
右键单击>添加>新建项目 - > Windows Phone的应用程序 - >空白应用程序(Windows手机)。
在Visual Studio 2013年的保费我现有的Xamarin的项目我使用sqlitenet PCL的数据库连接。我有下面的代码在我的项目。
in my existing Xamarin project in Visual Studio premium 2013. I am using sqlitenet pcl for database connection. I have below code in my project.
public ISQLitePlatform CreateSqlitePlatformInterface()
{
return new SQLitePlatformWinRT();
}
当它执行上面的行,它会抛出异常为
When it executes above line, it throws exception as
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)
这已经被问过很多很多次,我尝试了所有建议的解决方案,还是我不能修复它。
This has been asked many many times and I tried all suggested solution, still I am not able to fix it.
我Packages.config
My 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" />
以上是我从的NuGet下载的软件包。我缺少什么?我需要什么其他补充
Above are the packages I downloaded from Nuget. Am I missing anything? What else I need to add?
我也试过:
- 下载< STRONG>的sqlite-winrt81-3081002.vsix 下载
页面。 - 从86复制sqlite3.dll。
- 试图在我的斌
文件夹,以及在我的项目粘贴< STRONG>根并改变了它的内容
副本始终。 (参考:HTTP:/ /stackoverflow.com/questions/4744293/unable-to-load-dll-sqlite3-the-specified-module-could-not-be-found-exceptio ) - 我的项目是针对 86 不是任何CPU
- Downloaded sqlite-winrt81-3081002.vsix from Sqlite download page.
- Copied sqlite3.dll from x86.
- Tried pasting it in my bin folder as well as in my project root and changed it content to copy always. (ref: http://stackoverflow.com/questions/4744293/unable-to-load-dll-sqlite3-the-specified-module-could-not-be-found-exceptio)
- My project is targeting x86 not Any CPU.
Tried suggested solution from: Sol1, Sol2
我的项目参考:
推荐答案
安装的SQLite的Visual Studio扩展后,您需要添加一个参考 SQLite,让Windows运行时
在参考经理在Windows /扩展。
After installing the SQLite Visual Studio Extension, you need to add a reference To the SQLite for Windows Runtime
In Reference Manager under Windows / Extensions.
的筛选。
这篇关于无法加载DLL sqlite3的“SQLite中的网络平台的WinRT的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!