【问题标题】:Strong naming Google.Apis强命名 Google.Apis
【发布时间】:2015-01-25 09:43:46
【问题描述】:

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

由于 Google.Apis 包的 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

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

【问题讨论】:

    标签: c# google-api google-calendar-api google-api-dotnet-client


    【解决方案1】:

    不幸的是,您将不得不自己编译主题。

    Google 日历 dll 的来源可以在:https://developers.google.com/resources/api-libraries/download/calendar/v3/csharp

    不,他们还没有发布强名称版本 在过去的几年里,它已经一次又一次地被要求Strong naming in binaries 如果我们有足够多的人要求,请随意添加您的名字,也许他们可能会这样做。

    我希望这会有所帮助。

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

    【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2011-05-27
    • 1970-01-01
    • 1970-01-01
    • 2023-03-18
    • 1970-01-01
    • 2021-01-11
    相关资源
    最近更新 更多