Vb.net 在WinRT中使用SQLite创建表:BadImageFormatException
我正在使用并向我的windows应用商店应用程序添加引用,并尝试创建一个数据库,如下所示:Vb.net 在WinRT中使用SQLite创建表:BadImageFormatException,vb.net,sqlite,windows-runtime,visual-studio-2013,windows-8.1,Vb.net,Sqlite,Windows Runtime,Visual Studio 2013,Windows 8.1,我正在使用并向我的windows应用商店应用程序添加引用,并尝试创建一个数据库,如下所示: C:\Sqlite3>Sqlite3 mydata.db 接下来,尝试从my codebehind创建表,如图所示: Try Dim dbpath = Path.Combine(Windows.Storage.ApplicationData.Current.LocalFolder.Path, "mydata.db") Using db = New SQLite.SQLit
C:\Sqlite3>Sqlite3 mydata.db
接下来,尝试从my codebehind创建表,如图所示:
Try
Dim dbpath = Path.Combine(Windows.Storage.ApplicationData.Current.LocalFolder.Path, "mydata.db")
Using db = New SQLite.SQLiteConnection(dbpath)
' Create the tables if they don't exist
db.CreateTable(Of person)()
db.Commit()
db.Dispose()
db.Close()
End Using
Dim line = New MessageDialog("Table Created")
Await line.ShowAsync()
Catch
End Try
现在它不创建任何表,并且得到一个异常,如下所示
有人能告诉我哪里出了问题吗?来自:
SqlLite包含非托管代码,不能在64位上运行
操作系统,除非部署64位版本。快速修复:
项目+属性,构建选项卡,平台目标=x86
@阿琼:谢谢你的快速回答……真是不可思议:)