Google api 用于Google Drive Api命名空间引用的可移植类库
我正在开发一个Windows Phone应用程序,它需要阅读google docs电子表格,在第一次stemp时遇到了一个问题。根据关于和主题的公认答案,我在可移植类库中创建了类似的内容Google api 用于Google Drive Api命名空间引用的可移植类库,google-api,windows-phone,portable-class-library,Google Api,Windows Phone,Portable Class Library,我正在开发一个Windows Phone应用程序,它需要阅读google docs电子表格,在第一次stemp时遇到了一个问题。根据关于和主题的公认答案,我在可移植类库中创建了类似的内容 using Google.GData.Spreadsheets; public void Read() { SpreadsheetsService myService = new SpreadsheetsService("service"); myService.setUserCredenti
using Google.GData.Spreadsheets;
public void Read()
{
SpreadsheetsService myService = new SpreadsheetsService("service");
myService.setUserCredentials("username@provider.com", "password");
SpreadsheetQuery query = new SpreadsheetQuery();
SpreadsheetFeed feed = myService.Query(query);
foreach (SpreadsheetEntry entry in feed.Entries)
{
}
}
当尝试构建它时,我遇到以下错误:
The type or namespace name 'Google' could not be found
(are you missing a using directive or an assembly reference?)
这是一个Windows Phone 7.1应用程序,PCL设置为.Net 4+、Silverlight 4+Windows Phone 7.5+
有什么想法吗?PCL项目不能使用特定于平台的库,它们只能使用其他也必须支持兼容平台的PCL库。虽然引用可能与您的情况相同,但您不能实际使用它们 阅读更多信息
但是,由于Google Data API是一个开源项目,您可以制作一个PCL,并从其API中获取所需的功能,然后将其添加到您的PCL中并使用它。PCL项目不能使用特定于平台的库,只能使用其他也必须支持兼容平台的PCL库。虽然引用可能与您的情况相同,但您不能实际使用它们 阅读更多信息 然而,由于GoogleDataAPI是一个开源项目,您可以制作一个PCL,从他们的API中获取所需的功能,并将其添加到您的PCL中,然后使用它