简体   繁体   English

使用sqlite的Windows Phone 8应用程序

[英]using sqlite for a windows phone 8 app

I want to use sqlite db in my windows phone 8 app. 我想在我的Windows Phone 8应用程序中使用sqlite db。

I am have come across a blog which I am following to use sqlite in my app. 我遇到了一个博客 ,我在我的应用程序中使用sqlite。

The version I have downloaded for SQLite for Windows Phone is 3.8.0. 我为SQL Phone for Windows Phone下载的版本是3.8.0。 Also I have downloaded sqlite-net-wp8 project from GITHUB . 我也从GITHUB下载了sqlite-net-wp8项目。

The problem I am facing is that while including this sqlite-net-wp8 prject in my WP8 app solution, its giving an error 我面临的问题是,在我的WP8应用程序解决方案中包含这个sqlite-net-wp8 prject,它给出了一个错误

Unable to read the project file Sqlite.vcxproj

Also it says, 它也说,

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

What am I doing wrong ?? 我究竟做错了什么 ??

I Hope this link helps as it is from MsDn 我希望这个链接有用,因为它来自MsDn

Sqlite for windows phone 8 Sqlite for windows phone 8

Open your Solution in Visual studio. 在Visual Studio中打开您的解决方案。 Click on Tools->Extension and Update it will open Extension and Update Browser windows than search Sqlite for windows online and install Sqlite from searched result. 单击工具 - >扩展和更新它将打开扩展和更新浏览器窗口,而不是在线搜索Sqlite for Windows并从搜索结果安装Sqlite。 than it will restart your SDK 而不是它将重新启动您的SDK

Based on my understanding, you will get the same error even when you create every simple Visual C++ windows phone project from VS2012. 根据我的理解,即使从VS2012创建每个简单的Visual C ++ Windows Phone项目,您也会得到相同的错误。 In this case, I doubt that the issue is related to your VS. 在这种情况下,我怀疑这个问题与你的VS有关。

And according to Konrad's reply in this thread with similar issues: http://social.msdn.microsoft.com/Forums/en-US/cba01040-067e-4ac3-ba4c-a8a14ba3c45d/unable-to-read-the-project-file , I feel that you can check if this file: C:\\Program Files(x86)\\MSBuild\\Microsoft\\WindowsPhone\\v7.0\\Microsoft.Cpp.Windows Phone.7.0.targets is on your system. 根据Konrad在此主题中的回复,类似问题: http//social.msdn.microsoft.com/Forums/en-US/cba01040-067e-4ac3-ba4c-a8a14ba3c45d/unable-to-read-the-project-文件 ,我觉得你可以检查这个文件:C:\\ Program Files(x86)\\ MSBuild \\ Microsoft \\ WindowsPhone \\ v7.0 \\ Microsoft.Cpp.Windows Phone.7.0.targets在你的系统上。 If it is not there, I doubt that your VS installation is wrong. 如果它不存在,我怀疑你的VS安装是错误的。

If you are not using VS Express, you could locate to the IDE folder then run these commands to check if it can help: 如果您没有使用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.

If no help, I suggest you try repairing your VS or uninstall it and then reinstall it. 如果没有帮助,我建议你尝试修复你的VS或卸载它然后重新安装它。

Best regards, 最好的祝福,

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM