gilberto
gilberto

Reputation: 157

VS 2015 + universal app + mvvmcross 3.5.0 + sqlite

I started a new universal app using vs 2015 ctp 5, mvvmcross 3.5.0 + sqllite plugin 3.5.0.

I am using the famous N=.... serie of vídeos, especificaly n=12 Collect A Bull as a reference.

I created a new pcl Project as a core and a universal app Project(3 projects), added nuget packages to core , wp8.1 and to w8.1, everything good so far.

Then i copied the service folder from N=12 sample, added related nuget packages.

My trouble is: at this line _connection = factory.Create("collect.sql"); on repository i've got a exception :

A first chance exception of type 'System.DllNotFoundException' occurred in Cirrious.MvvmCross.Plugins.Sqlite.WindowsCommon.DLL

Additional information: Unable to load DLL 'sqlite3': The specified module could not be found. (Exception from HRESULT: 0x8007007E)

The message is pretty clear cannot found sqlite3.dll i've seen some articles to add file and reference manually, but i did not see nothing on the vídeo, and the N-12 sample runs ok?

How the sample can access the mentioned sqlite dll, it could be related to universal app?

By comparison i found a missing reference in wp project: Community.CsharpSqlite.WP7 i added manually but does not solve.

Any suggestions?

Upvotes: 2

Views: 692

Answers (3)

PkL728
PkL728

Reputation: 955

I would check out the SQLite.Net-PCL project. I've heard of some success in people using that although I have not personally used it yet.

I just submitted a pull request to the MvvmCross Community SQLite project to update it to MvvmCross 3.5 and unified iOS API - so you could give that a try as well. There is no new NuGet for that yet however. You'll need to clone the project and compile it yourself.

Upvotes: 0

gilberto
gilberto

Reputation: 157

So, to solve this i just have to download from http://www.sqlite.org/download.html and add reference manually

Thanks to mohibsheth on jabbr room

Upvotes: 1

VikrantMore
VikrantMore

Reputation: 903

Try adding

Install-Package MvvmCross.HotTuna.Plugin.Sqlite -Version 3.2.1

from package manager console. It worked for me. If directly it didn't worked, then remove all the packages and add all packages of version 3.2.2 like :

Install-Package MvvmCross -Version 3.2.2
Install-Package MvvmCross.HotTuna.Plugin.FieldBinding -Version 3.2.2
Install-Package MvvmCross.HotTuna.Plugin.Messenger -Version 3.2.2

Still having problem with the packages?Uncheck Silverlight from Core project properties.

Version 3.5.0 raising problems for me too.

Hope this helps.

Upvotes: 0

Related Questions