Bei der Google Data API-Bibliothek ist ein Fehler in der Windows Metro Style-App aufgetreten
Betriebssystem: Windows 8 Consumer Preview
IDE: Visual Studio 11 Beta
Ich erstelle eine leere Anwendung (Windows Metro-Stil).
Und fügen Sie den Google Doc API-Beispielcode hinzu. (Es ist unten)
Es treten Kompilierfehler auf. (Kann Typ System.ComponentModel.ExpandableObjectConverter in Modul System.dll nicht finden)
Beim Erstellen einer Konsolenanwendung (Windows) treten jedoch keine Kompilierungsfehler auf und die Google Doc API funktioniert einwandfrei.
Irgendwelche Ideen?
<code>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); } } } } </code>