SQLite WinRT包装器使Windows Phone 8.1项目中的处理器体系结构不匹配

时间:2016-03-09 02:40:58

标签: c# windows sqlite windows-runtime windows-phone-8.1

我有一个适用于Windows Phone 8.1的WinJS项目。我在Windows运行时组件中添加了SQLite-WinRT wrapper。但是,它在 ARM 配置中出错,但在 x86 配置中没有出现任何错误。我需要在真实设备中运行我的项目,因此在这种情况下必须使用ARM配置。请告诉我我做错了什么。提前谢谢。

屏幕截图显示ARM配置错误

enter image description here

屏幕截图,x86配置无错误

enter image description here

错误: Severity Code Description Project File Line Suppression State Error There was a mismatch between the processor architecture of the project being built "ARM" and the processor architecture, "x86", of the implementation file "C:\Users\Test\Desktop\AMTEK\Smart_WindowsPhone\packages\Sqlite-Winrt.3.8.7.1\lib\wpa81\SQLiteWinRT.dll" for "C:\Users\Test\Desktop\AMTEK\Smart_WindowsPhone\packages\Sqlite-Winrt.3.8.7.1\lib\wpa81\SQLiteWinRT.winmd". This mismatch may cause runtime failures. Please consider changing the targeted processor architecture of your project through the Configuration Manager so as to align the processor architectures between your project and implementation file, or choose a winmd file with an implementation file that has a processor architecture which matches the targeted processor architecture of your project. SmartflowRuntimes

1 个答案:

答案 0 :(得分:0)

对于Windows手机,为什么不使用
SQLite for Windows Phone 8.1 (SQLite.WP81, Version=3.9.2) nuget包?
WinRT仅适用于桌面应用程序。如果您要创建Windows 8.1应用程序,则需要在两者中添加特定的SQLite引用 1)Windows 8.1中的SQLite for Windows Runtime (Windows 8.1) SQLite.WinRT81, Version=3.10.2 2)Windows Phone 8.1中的SQLite for Windows Phone 8.1 SQLite.WP81, Version=3.9.2 此外,您还需要重建可能已添加到特定调试配置的任何可移植或参考项目,然后构建项目以避免任何错误。

相关问题