通用 Windows 平台和 Live SDK [英] Universal Windows Plateform And Live SDK

查看:36
本文介绍了通用 Windows 平台和 Live SDK的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有问题.我最近在我的电脑上安装了 VS 2015 和 Windows 10.拥有通用应用程序很棒,我计划在 UWP 上转换我的一些程序.但我有一个问题.在我的一个程序中,我允许用户将其数据保存在其 OneDrive 上.如果 OneDrive 不可用,数据将存储在本地设备上.当 OneDrive 可用时,新存储的数据会推送到 OneDrive.事实上同步.所以这是问题所在.在名为 Universal.Live 的 UWP dll 中,我安装了带有 Nuget 的 Live SDK 6.在安装包的过程中,需要做一些工作来查看 Live SDK 是否与 UWP 兼容.伟大的 !它兼容并成功安装.但是当我写

I have a problem. I recently installed VS 2015 and Windows 10 on my computer. Having Universal Apps are amazing and I plan to convert some of my programs on UWP. But I have a problem. In one of my programs, I allow the user to save its datas on its OneDrive. And if OneDrive is unavailable, the datas are stored on local devices. And when OneDrive is available, the newly stored datas are pushed to OneDrive. Synchronisation in fact. So it is the problem. In the UWP dll named Universal.Live I have installed Live SDK 6 with Nuget. During the package installation, there is some work done to see if the Live SDK is compatible with UWP. Great ! It's compatible and successfully installed. But when I wrote

使用 Microsoft.Live;

using Microsoft.Live;

无法识别名称.如果我使用命名空间中的 LiveAuthClient 类,它也不会被识别......这是一个真正的问题:(有什么想法吗?

The name is not recognized. And if I use the class LiveAuthClient which is in the namespace, it isn't recognized too... This is a real problem :( Any ideas ?

推荐答案

我在将 Live SDK 添加到我的应用程序时遇到了同样的问题.出于某种原因,Package.JSON 没有正确解析和下载包(或识别它).

I had the same issue adding the Live SDK to my app. For some reason the Package.JSON isn't correctly resolving and downloading the package (or recognizing it).

无论哪种方式,只需以老式的方式将 DLL 添加到您的引用中.就我个人而言,我只是将它添加到控制台应用程序(不使用新的 Project.json 包),从 NUGET 获取它,然后从包中获取 DLL.

Either way, just add the DLL to your references the old fashioned way. Personally, I'd just add it to a console app (not using the new Project.json package), get it from NUGET, and grab the DLL from the Packages.

在您拥有 DLL 之后:

After you have the DLL:

  1. 右键单击引用
  2. 添加参考 -> 浏览...
  3. 找到 DLL 并添加它.("...\\packages[LiveSdk]...")
  4. 它有效!

从这里下载,编译,然后获取桌面 SDK:

Download it from here, Compile it, and grab the desktop SDK:

https://github.com/liveservices/LiveSDK-for-Windows

您也可以下载 msi,安装它,找出 DLL 的安装位置并从那里获取它:

You can also download the msi, install it, figure out where the DLL is installed to and grab it from there:

https://www.microsoft.com/en-us/download/details.aspx?id=42552

这篇关于通用 Windows 平台和 Live SDK的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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