LiveSDK 5.6.3 无法在 UWP 商店应用程序中运行

LiveSDK 5.6.3 not working in UWP store app

我有一个通用的 windows 应用商店应用,目标为 Windows 10。在以前版本的应用中,目标为 Windows 8.1 我使用了 LiveSDK (the 5.6 version here) to access data from the user's MS Live account using the LiveAuthClient. In the new version of the app, I figured I'd use the most recent version of the LiveSDK (5.6.3 available as a nuget package here) 但是当我安装 nuget 包时,我无法访问 Microsoft.Live 命名空间。

例如下面的语句:

using Microsoft.Live;

产生错误 "The type or namespace 'Live' does not exist in the namespace 'Microsoft'"

这个包裹是坏了还是我遗漏了一些明显的东西?我希望它能像 LiveSDK 5.6 版本一样工作。 documentation for the LiveSDK 现在似乎都指向有关 OneDrive api 的信息,所以这让我想知道 sdk 的目的是否已经改变。我很困惑...最新版本的 LiveSDK(带有 LiveAuthClient 的版本)是什么?我在哪里可以找到它?

我不确定为什么 Nuget 管理器 没有自动添加引用,但是一旦您从目录手动添加引用,它似乎就可以工作了:

C:\Users\USER\.nuget\packages\LiveSDK.6.3\WindowsXAML\MicrosoftLive.dll.