【问题标题】:using sqlite for a windows phone 8 app将 sqlite 用于 Windows Phone 8 应用程序
【发布时间】:2013-09-09 06:33:08
【问题描述】:

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

我遇到了blog,我正在关注它以在我的应用程序中使用 sqlite。

我为 Windows Phone 下载的 SQLite 版本是 3.8.0。我还从GITHUB 下载了 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

我做错了什么??

【问题讨论】:

    标签: c# sqlite windows-phone-8


    【解决方案1】:

    我希望这个链接对 MsDn 有帮助

    Sqlite for windows phone 8

    【讨论】:

    • 我正在按照链接中给出的步骤进行操作,但在步骤You will need to right click on the solution file and select add existing solution. 中失败了
    • 给我第二次病假检查
    • 我收到另一个警告(警告如果 sqlite-net-wp8 不使用相同版本的 SQLite for windows phone,您将无法打开应用程序)
    • 成功了。 :) 按着这些次序。 1 -> 从以下位置下载 Sqlite -> sqlite.org/2013/sqlite-wp80-winrt-3080000.vsix 2 -> 安装 vsix。 3 -> 转到 C:\Program Files (x86)\Microsoft SDKs\Windows Phone\v8.0\ExtensionSDKs\SQLite.WP80\3.8.0 并将 3.8.0 重命名为 3.8.0.2 看看它是否有效:) 4 - > 现在添加从 GitHub 下载的 C++ 项目
    • 成功了。我从 VS 2012 中删除了以前安装的扩展并安装了最新的扩展,它开始像魔术一样工作。我现在能够构建应用程序。谢谢
    【解决方案2】:

    在 Visual Studio 中打开您的解决方案。 点击工具->扩展和更新 它将打开扩展和更新浏览器窗口,而不是在线搜索 Sqlite for windows 并从搜索结果中安装 Sqlite。它会重新启动你的 SDK

    【讨论】:

      【解决方案3】:

      根据我的理解,即使你从 VS2012 创建每个简单的 Visual C++ windows phone 项目,你也会得到同样的错误。在这种情况下,我怀疑问题与您的 VS 有关。

      根据康拉德在此线程中的回复类似问题:http://social.msdn.microsoft.com/Forums/en-US/cba01040-067e-4ac3-ba4c-a8a14ba3c45d/unable-to-read-the-project-file,我觉得你可以检查这个文件: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.
      

      如果没有帮助,我建议你尝试修复你的VS或者卸载它然后重新安装它。

      最好的问候,

      【讨论】:

        猜你喜欢
        • 2015-02-25
        • 2015-11-08
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 2014-08-28
        • 1970-01-01
        • 1970-01-01
        相关资源
        最近更新 更多