C# Windows Metro风格应用程序与Google数据API库发生错误
操作系统:Windows 8用户预览版C# Windows Metro风格应用程序与Google数据API库发生错误,c#,windows-8,windows-runtime,google-docs-api,C#,Windows 8,Windows Runtime,Google Docs Api,操作系统:Windows 8用户预览版 IDE:Visual Studio 11测试版 我创建一个空白应用程序(Windows Metro样式)。 并添加GoogleDocAPI示例代码。(如下所示) 出现编译错误。(在模块System.dll中找不到类型System.ComponentModel.ExpandableObjectConverter) 但当我创建一个控制台应用程序(Windows)时,并没有出现编译错误,GoogleDocAPI运行良好 有什么想法吗 using System;
IDE:Visual Studio 11测试版
我创建一个空白应用程序(Windows Metro样式)。
并添加GoogleDocAPI示例代码。(如下所示)
出现编译错误。(在模块System.dll中找不到类型System.ComponentModel.ExpandableObjectConverter)
但当我创建一个控制台应用程序(Windows)时,并没有出现编译错误,GoogleDocAPI运行良好 有什么想法吗
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);
}
}
}
}
该类似乎存在于标准的.NET framework中,但如果查看命名空间的Metro API文档,该类未列出,因此不可用
我建议在编写Metro风格的应用程序时使用该页面来发现可用的内容。Argh,我也有同样的问题。。。真的需要一个地铁应用程序的谷歌API。。。你是怎么解决的?