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
right-click > Add > New Project -> Windows Phone Apps -> Blank App(Windows Phone).
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.
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" />
Above are the packages I downloaded from Nuget. Am I missing anything? What else I need to add?
Also I tried:
Tried suggested solution from: Sol1, Sol2
My Project References:
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.
Like this.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With