Warning: file_get_contents(/data/phpspider/zhask/data//catemap/7/sqlite/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
C# 将sqlite用于windows phone 8应用程序_C#_Sqlite_Windows Phone 8 - Fatal编程技术网

C# 将sqlite用于windows phone 8应用程序

C# 将sqlite用于windows phone 8应用程序,c#,sqlite,windows-phone-8,C#,Sqlite,Windows Phone 8,我想在我的windows phone 8应用程序中使用sqlite db 我遇到了一个在我的应用程序中使用sqlite的问题 我为SQLite for Windows Phone下载的版本是3.8.0。我还从下载了sqlite-net-wp8项目 我面临的问题是,在我的wp8应用程序解决方案中包含这个sqlite-net-wp8项目时,它给出了一个错误 Unable to read the project file Sqlite.vcxproj 还说, the imported project

我想在我的windows phone 8应用程序中使用sqlite db

我遇到了一个在我的应用程序中使用sqlite的问题

我为SQLite for Windows Phone下载的版本是3.8.0。我还从下载了sqlite-net-wp8项目

我面临的问题是,在我的wp8应用程序解决方案中包含这个sqlite-net-wp8项目时,它给出了一个错误

Unable to read the project file Sqlite.vcxproj
还说,

the imported project C:\Program Files\Microsoft SDKs\Windows Phone\v8.0\ExtensionSDKs\SQLite.WP80\3.8.0.2\DesignTime\Common Configuration\Neutral\SQLite.QP80.props not found

我做错了什么???

我希望这个链接能有所帮助,因为它来自MsDn


在Visual studio中打开您的解决方案。 单击工具->扩展和更新
它将打开扩展并更新浏览器窗口,而不是在线搜索Sqlite for windows,并根据搜索结果安装Sqlite。根据我的理解,即使在从VS2012创建简单的Visual C++ Windows Phone项目时,也会得到同样的错误。在这种情况下,我怀疑这个问题与您的VS有关

根据Konrad在这篇文章中回答的类似问题:,我觉得您可以检查以下文件:C:\Program Files(x86)\MSBuild\Microsoft\WindowsPhone\v7.0\Microsoft.Cpp.Windows Phone.7.0.targets是否在您的系统上。如果没有,我怀疑你的VS安装是错误的

如果未使用VS Express,则可以定位到IDE文件夹,然后运行以下命令以检查其是否有帮助:

Please open Windows Explorer, and navigate to  <Visual Studio Installation Path>\Common7\IDE
Devenv.exe /SafeMode: Launches the IDE in safe mode loading minimal windows.
Devenv.exe /ResetSettings: Restores the IDE's default settings, optionally resets to the specified VSSettings file.
Devenv.exe /ResetAddin: Removes commands and command UI associated with the specified Add-in.
Devenv.exe /ResetSkipPkgs: Clears all SkipLoading tags added to VSPackages.
请打开Windows资源管理器,并导航到\Common7\IDE
Devenv.exe/SafeMode:在安全模式下启动IDE,加载最少的窗口。
Devenv.exe/ResetSettings:恢复IDE的默认设置,可以选择重置为指定的VSSettings文件。
Devenv.exe/ResetAddin:删除与指定加载项关联的命令和命令UI。
Devenv.exe/ResetSkipPkgs:清除添加到VSPackages的所有SkipLoading标记。
如果没有帮助,我建议您尝试修复您的VS或卸载它,然后重新安装


致以最诚挚的问候,

我正在遵循链接中给出的步骤,但在步骤
中失败了。您需要右键单击解决方案文件并选择添加现有解决方案再给我一次错误检查我收到另一个警告(警告如果sqlite-net-wp8不使用相同版本的sqlite for windows phone,您将无法打开该应用程序)成功:遵循以下步骤。1->从下载Sqlite->2->安装vsix。3–>转到C:\程序文件(x86)\微软SDKS \ Windows Phone \ V8.0\ExtExpDsks\SQLite .WP80\3.8.0,并重命名3.8.0到3.8.0.2,看看它是否工作:4–>现在添加从GITHUB下载的项目,C++ One获得成功。我从VS 2012中删除了以前安装的扩展,并安装了最新的扩展,它开始像魔术一样工作。我现在可以构建这个应用程序了。谢谢