SQLite.WP81 扩展 SDK 安装在 VS2013 U2 上,但无法在 WP 8.1 项目中引用程序集 [英] SQLite.WP81 extension SDK installs on VS2013 U2 but unable to reference assembly in WP 8.1 project

查看:27
本文介绍了SQLite.WP81 扩展 SDK 安装在 VS2013 U2 上,但无法在 WP 8.1 项目中引用程序集的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在 Visual Studio 2013 Update 2 上安装 SQLite.WP81 扩展 SDK 后,Windows Phone 程序集的 SQLite 未出现在 Windows Phone 8.1 选项卡的扩展列表中.

After installing the SQLite.WP81 extension SDK on Visual Studio 2013 Update 2, the SQLite for Windows Phone assembly does not appear in the list of Extensions in the Windows Phone 8.1 tab.

在 Visual Studio 库中的 SQLite for Windows Phone 8.1 下载页面上有讨论 另一个开发人员似乎有同样的问题.另一位开发人员建议手动安装扩展程序,但这没有任何区别.(这个建议似乎很可疑,因为这个扩展现在安装在 C:\Program Files (x86)\Microsoft SDKs\WindowsPhoneApp\v8.1\ExtensionSDKs\SQLite.WP81\3.8.6 下)

There is a discussion on the SQLite for Windows Phone 8.1 download page in the Visual Studio Gallery where another developer seems to have the same issue. Another developer suggests manually installing the extension, but that made no difference. (And that advice seems suspect as it appears this extension is now installed under C:\Program Files (x86)\Microsoft SDKs\WindowsPhoneApp\v8.1\ExtensionSDKs\SQLite.WP81\3.8.6)

该扩展似乎未能将自身注册为 Visual Studio 的扩展 SDK.

It seems the extension has failed to register itself as an extension SDK with Visual Studio.

有人知道如何解决这个问题吗?

Anyone with ideas of how to fix this?

事情有所进展

我将 SQLite.WP81 文件夹从 C:\Program Files (x86)\Microsoft SDKs\WindowsPhoneApp\v8.1\ExtensionSDKs\SQLite.WP81\ 移动到 C:\Program Files (x86)\MicrosoftSDKs\Windows Phone\v8.1\ExtensionSDKs\SQLite.WP81\,更新了\SQLite.WP81\3.8.6\extension.vsixmanifest和\SQLite.WP81\3.8.6\DesignTime\CommonConfiguration\neutral\SQLite中的路径.WP81.props 文件以反映新位置和包出现.

I moved the SQLite.WP81 folder from the C:\Program Files (x86)\Microsoft SDKs\WindowsPhoneApp\v8.1\ExtensionSDKs\SQLite.WP81\ to C:\Program Files (x86)\Microsoft SDKs\Windows Phone\v8.1\ExtensionSDKs\SQLite.WP81\, updated the paths in the \SQLite.WP81\3.8.6\extension.vsixmanifest and \SQLite.WP81\3.8.6\DesignTime\CommonConfiguration\neutral\SQLite.WP81.props files to reflect the new location and the package appeared.

这既奇怪又很棒.手动破解 SDK 似乎很奇怪.但这是进步.

This is weird and great at the same time. Manually hacking the SDK seems odd. But it is progress.

现在,问题是 SQLite.WP81 需要一些名为 Microsoft.VCLibs 的 SDK,但它没有出现在资源管理器中.到目前为止,在网络上搜索一直没有结果.

Now, the problem is SQLite.WP81 wants some SDK called Microsoft.VCLibs and that does not appear in the Resource Manager. Searching the web has been fruitless so far.

有人知道在哪里可以找到 Microsoft.VCLibs 吗?

Does anyone have a clue where to find the Microsoft.VCLibs?

推荐答案

VS2013 U3 和我的项目之间有问题.出于某种原因,将此项目升级到 Windows Phone Silverlight 8.1 后,VS2013 U3 将不会显示任何 Windows Phone 8.1 的扩展 SDK.

There is something broken between VS2013 U3 and my project. For some reason, after upgrading this project to Windows Phone Silverlight 8.1, VS2013 U3 will not show any of the Extension SDKs for Windows Phone 8.1.

我使用 XML 编辑器包含对项目的 .csproj 文件的以下引用.

I used the XML editor to include the following references to the project's .csproj file.

  <ItemGroup>
    <SDKReference Include="SQLite.WP81, Version=3.8.6">
      <Name>SQLite for Windows Phone 8.1</Name>
    </SDKReference>
  </ItemGroup>
  <ItemGroup>
    <SDKReference Include="Microsoft.VCLibs, Version=12.0">
      <Name>Microsoft Visual C++ 2013 Runtime Package for Windows Phone</Name>
    </SDKReference>
  </ItemGroup>

阻止我的项目工作的另一个问题是我在项目之间使用了不同的 sqlite.winmd 文件.该应用程序将构建和部署,但在运行时该应用程序会崩溃.调试日志中的一些消息说 SQLite 未注册.(抱歉,没有写下实际消息.)通过对 sqlite.winmd 进行相同引用的所有项目,最终使应用程序在 WP8.1 上运行.

The other issue preventing my project from working was my use of different sqlite.winmd files between the projects. The app would build and deploy, but at run-time the app would crash. Some message in the Debug log says SQLite is not registered. (Sorry, didn't write down the actual message.) Going through all of my projects making identical references to sqlite.winmd finally got the app running on WP8.1.

希望这可以防止其他人浪费几天时间.

Hopefully this prevents others from wasting a few days.

这篇关于SQLite.WP81 扩展 SDK 安装在 VS2013 U2 上,但无法在 WP 8.1 项目中引用程序集的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆