更新的Mirror Api .Net(v1.5.0.33-beta)客户端出现了问题

时间:2013-10-22 12:00:04

标签: .net google-mirror-api google-glass

今天我使用nuget包管理器使用以下链接更新了镜像api客户端。

https://www.nuget.org/packages/Google.Apis.mirror.v1

之后我重建了我的项目。但它给了我很多问题。

我需要澄清以下方法的新方法。或者是否有我们可以使用的参考文件。

 Oauth2Service userService = new Oauth2Service(initializer);
 String userId = userService.Userinfo.Get().Fetch().Id;

我们可以使用Excute()方法而不是Fetch()吗?

并且当我运行它时它会出现以下错误

Method 'get_BasePath' in type 'Google.Apis.Oauth2.v2.Oauth2Service' from assembly 'Google.Apis.Oauth2.v2, Version=1.3.0.15233, Culture=neutral, PublicKeyToken=null' does not have an implementation

我们必须进行哪些修改才能应用此升级。

1 个答案:

答案 0 :(得分:2)

最后,经过大的努力,我得到了它。

首先,我删除了所有google api引用。

然后我安装以下libs的预发布版本

enter image description here

之后它给了我一些参考错误。所以我使用更新依赖项来修复它。

这个Stackoverflow答案给了我很多帮助。

将所有Fetch()替换为Execute()

相关问题