1
我试图用它的API连接到Google Drive
。 Google声明它提供了必要的DLL
和引用at this link here(“下载最新版本的库”)。但是,当我尝试添加必要的参考时,C#
无法找到任何DLL
,并且手动搜索它们会得到0个结果。从参考链接:C#Google Drive API参考
ZIP文件包含核心库和驱动器特定的DLL。 在下一个 部分讨论在您的解决方案中引用这些DLL。
下面的命名空间需要引用:在谷歌链接四处寻找
using DotNetOpenAuth.OAuth2;
using Google.Apis.Authentication.OAuth2;
using Google.Apis.Authentication.OAuth2.DotNetOpenAuth;
using Google.Apis.Drive.v2;
using Google.Apis.Drive.v2.Data;
using Google.Apis.Util;
using Google.Apis.Services;
,我不觉得与在上述提及的必要DLL
什么事。
注意:这是一个测试桌面控制台应用程序,而不是Web应用程序。
编辑:我要补充,如果我添加了以下文件作为现有项目,但它仍然是无法发现,大部分的组件:
Google.Apis.Drive.v2.1.5.0.95-beta.nuspec
Google.Apis.Drive.v2.cs
Google.Apis.Drive.v2.csproj
packages.config
using DotNetOpenAuth.OAuth2;
using Google.Apis.Authentication.OAuth2;
using Google.Apis.Authentication.OAuth2.DotNetOpenAuth;
using Google.Apis.Util;
using Google.Apis.Services;
好了,下载文件包含源仅据我可以看到... ...你必须重新编译。 –