I'm trying to program with SQLite on WinRT 8.1 on Visual Studio 2013. I installed SQLite with the WinRT 8.1 VSIX and the same one for Windows Phone 8.1 and also load the sqlite-net from nuget.
I use to get the following Error:
An exception of type 'System.BadImageFormatException' occurred in TimeTableAPP.Windows.exe but was not handled in user code

from this two lines of code:
SQLiteAsyncConnection cneu = new SQLiteAsyncConnection("newDB.db");
await cneu.CreateTableAsync<TestTable>();
same with
var conn = new SQLiteAsyncConnection(System.IO.Path.Combine(Windows.ApplicationModel.Package.Current.InstalledLocation.Path, "newDB.db"));
await cneu.CreateTableAsync<TestTable>();
with TestTable
[Table("TestTable")]
public class TestTable
{
[PrimaryKey, AutoIncrement]
public long Id { get; set; }
public string nomnomnom { get; set; }
}
This issue seems to happen quite often and usually is solved by setting platform target to x86. As you can see I do so:

I have no idea what to try anymore. I ran a repair on the VC2013 installation, uninstalled and reinstalled the VSIX and made a project for shared Windows 8.1 and Windows Phone 8.1, with Windows Phone NOT triggering the error, but Windows Store App triggering the error with the same code.
using System.Data.SQLite, norusing SQLitelike before - user3079834