强命名谷歌.Apis

本文关键字:Apis 谷歌 | 更新日期: 2023-09-27 18:32:04

我目前正在开发与Google日历的日历同步。

由于Google.API软件包的NuGet变体不是强名称,因此我尝试自己对其进行签名(使用ILASM和ILDASM)。不幸的是,这会导致以下构建错误:

The type 'Google.Apis.Authentication.IAuthenticator' is defined in an assembly that is not referenced. You must add a reference to assembly 'Google.Apis, Version=1.2.4737.25313, Culture=neutral, PublicKeyToken=null'.

现在我尝试下载源代码(来自:https://code.google.com/p/google-api-dotnet-client/source/browse/)并自己编译它们。这确实有效,但是缺少Google.Apis.Calendar.v3 dll。

现在我在这里找到了它:https://code.google.com/p/google-api-dotnet-client/source/browse/Services/Google.Apis.Calendar.v3.cs?repo=samples&r=4ce33c684dd8e6f11b441f685149856c6735e51b

但我不知道我该如何处理这整件事。难道没有任何现成的 DLL 用于 Google 日历集成,这些 DLL 是强名称的吗?

强命名谷歌.Apis

不幸的是,

您将不得不自己编译主题。

谷歌日历dll的来源可以在以下位置找到:https://developers.google.com/resources/api-libraries/download/calendar/v3/csharp

不,他们还没有发布强名称版本 在过去的几年里,它一次又一次地被请求 二进制文件中的强命名 如果我们中有足够多的人要求,请随时将您的名字添加到其中,也许他们可能会这样做。

我希望这有所帮助。

更新(7月23日):适用于 .NET 的 Google API 客户端库 1.9.2 版刚刚发布,它包含已签名的 dll。看看公告:http://google-api-dotnet-client.blogspot.com/2015/07/announcing-release-of-192.html