我不能從https://developers.google.com/drive/quickstart-cs我無法從https://developers.google.com/drive/quickstart-cs編譯源代碼
1> d編譯源代碼:\工作\ CSharp \ ConsoleApplication1 \ Program.cs(22,27,22,49):錯誤CS1502:'Google.Apis.Drive.v2.DriveService.DriveService(Google.Apis.Services.BaseClientService.Initializer)'的最佳重載方法匹配有一些無效參數
1> d:\ work \ CSharp \ ConsoleApplication1 \ Program.cs(22,44,22,48):錯誤CS1503:參數1:無法從'Google.Apis.Authentication.OAuth2轉換。 OAuth2Authenticator'改爲'Google.Apis.Services.BaseClientService.Initializer'
這兩個錯誤引用var service = new DriveService(auth);
字符串。有任何想法嗎?
您使用的是最新版本的.NET客戶端庫)? – 2013-03-26 17:43:58