2012-05-09 27 views
3

操作系統:Windows 8消費者預覽版
IDE:Visual Studio的11測試版中
的Windows Metro風格應用程序發生錯誤與谷歌數據API庫

我創建一個空白的應用程序(Windows Metro風格)。
並添加Google Doc API示例代碼。 (這是下文)
它發生編譯錯誤。(模塊找不到類型System.ComponentModel.ExpandableObjectConverter System.dll中

但是當我創建一個控制檯應用程序(Windows)中,不發生編譯錯誤和Google Doc API工作良好。

任何想法?

using System; 
using Google.GData.Client; 
using Google.GData.Documents; 

namespace MyDocumentsListIntegration 
{ 
    class Program 
    { 
    static void Main(string[] args) 
    { 
     DocumentsService service = new DocumentsService("MyDocumentsListIntegration-v1"); 

     // TODO: Authorize the service object for a specific user (see Authorizing requests) 

     // Instantiate a DocumentsListQuery object to retrieve documents. 
     DocumentsListQuery query = new DocumentsListQuery(); 

     // Make a request to the API and get all documents. 
     DocumentsFeed feed = service.Query(query); 

     // Iterate through all of the documents returned 
     foreach (DocumentEntry entry in feed.Entries) 
     { 
     // Print the title of this document to the screen 
     Console.WriteLine(entry.Title.Text); 
     } 
    } 
    } 
} 
+0

Argh,我有同樣的問題......真的需要谷歌應用程序的API ...你是如何解決這個問題的? –

回答

相關問題