2012-05-09 4 views
3

OSエラーが発生します。私は空白のアプリケーション(WindowsのMetroスタイル)を作成Visual Studioの11のベータ版
のWindows MetroスタイルアプリのGoogle Data APIライブラリで

:Windows 8のコンシューマープレビュー
IDEを。
Googleドキュメント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

ああ、私は同じ問題があります...本当にMetroアプリケーション用のGoogle APIが必要です...これをどのように解決しましたか? –

答えて

1

ExpandableObjectConverterクラスは、標準の.NETフレームワークに存在していますが、System.ComponentModel名前空間のメトロAPIドキュメントを見れば、そのクラスが表示されていないので、利用できないことが表示されます。

.NET for Metro style appsページを使用して、Metroスタイルアプリケーションを作成するときに利用できるものを見つけることをおすすめします。

関連する問題