LiveSDK 5.6.3 not working in UWP store app

 ̄綄美尐妖づ 提交于 2019-12-02 10:06:08

问题


I have a universal windows store app targeting Windows 10. In a previous version of the app targeting Windows 8.1 I used the 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) but when I install the nuget package, I am unable to to access the Microsoft.Live namespace.

For example, the following statement:

using Microsoft.Live;

Produces the error "The type or namespace 'Live' does not exist in the namespace 'Microsoft'"

Is this package broken or am I missing something obvious here? I would have expected this to work just like it did with the 5.6 version of the LiveSDK. It also seems like the documentation for the LiveSDK is all pointing to info about the OneDrive api now so it makes me wonder if the purpose of the sdk has changed. I'm confused... What's the most recent version of the LiveSDK (the one that has the LiveAuthClient) and where can I find it?


回答1:


I'm not sure why Nuget Manager doesn't add a reference automatically, but it seems to work once you add a reference manually from directory:

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



来源:https://stackoverflow.com/questions/32856235/livesdk-5-6-3-not-working-in-uwp-store-app

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!