签名的google.apis.dll给编译器错误 [英] signed google.apis.dll is giving compiler error
问题描述
我获得了最新的Google.Apis,Google.Apis.Core和Google.Apis.Auth.dll(均为1.9.x.x)的源代码,并使用强名称进行了编译.现在,当我使用强命名的dll编译代码时,会出现错误:
I got the source code for the latest Google.Apis, Google.Apis.Core and Google.Apis.Auth.dll (all 1.9.x.x) and compiled them with strong name. Now when I compile my code using the strong named dlls it gives an error:
The type 'Google.Apis.Services.BaseClientService.Initializer' is defined in an assembly that is not referenced. You must add a reference to assembly 'Google.Apis, Version=1.9.0.23042, Culture=neutral, PublicKeyToken=null'
在行中的
:UserCredential credential = new UserCredential(flow, "me", token);
in the line: UserCredential credential = new UserCredential(flow, "me", token);
一切都很好,没有强大的名字.我需要添加强名,因为引用该库的主程序具有强名.
Everything works just fine without strong name. I need to add the strong name because my main program where this library is referred has strong name.
有什么想法吗?
推荐答案
有关Google API日历,云端硬盘,Youtube以及所有这些资源的资源,请访问:
The sources for Google APIs Calendar, Drive, Youtube and all are available at: https://google-api-client-libraries.appspot.com/download/library/[API_NAME]/[API_VERSION]/csharp.
例如,要下载最新的Calendar API源,请使用以下链接- https://google-api-client-libraries.appspot.com/download/library/calendar/v3/csharp
For example to download the latest Calendar API source, use the following link - https://google-api-client-libraries.appspot.com/download/library/calendar/v3/csharp
这篇关于签名的google.apis.dll给编译器错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!