2

今天我使用以下链接使用 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

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

4

1 回答 1

2

经过一番努力,我终于得到了这个作品。

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

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

在此处输入图像描述

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

这个Stackoverflow答案对我帮助很大。

全部替换Fetch()Execute()

于 2013-10-23T12:13:29.477 回答