类型“电子邮件”;在未引用的程序集中定义
我收到以下错误:
Error 1 The type 'Google.GData.Extensions.EMail' is defined in an assembly that is not referenced. You must add a reference to assembly 'Google.GData.Extensions, Version=1.9.0.0, Culture=neutral, PublicKeyToken=0b4c5df2ebf20876'
我的代码:
using Google.Contacts;
using Google.GData;
using Google.GData.Contacts;
using Google.GData.Client;
using Google.GData.Extensions;
class Program
{
static void Main(string[] args)
{
RequestSettings settings = new RequestSettings("test app", "mail", "pass");
settings.AutoPaging = true;
ContactsRequest contacts = new ContactsRequest(settings);
Feed<Contact> list = contacts.GetContacts();
foreach (Contact contact in list.Entries)
{
Console.WriteLine(contact.Emails);
}
Console.ReadLine();
}
}
如何修复它?提前致谢。
I getting the following error:
Error 1 The type 'Google.GData.Extensions.EMail' is defined in an assembly that is not referenced. You must add a reference to assembly 'Google.GData.Extensions, Version=1.9.0.0, Culture=neutral, PublicKeyToken=0b4c5df2ebf20876'
my code:
using Google.Contacts;
using Google.GData;
using Google.GData.Contacts;
using Google.GData.Client;
using Google.GData.Extensions;
class Program
{
static void Main(string[] args)
{
RequestSettings settings = new RequestSettings("test app", "mail", "pass");
settings.AutoPaging = true;
ContactsRequest contacts = new ContactsRequest(settings);
Feed<Contact> list = contacts.GetContacts();
foreach (Contact contact in list.Entries)
{
Console.WriteLine(contact.Emails);
}
Console.ReadLine();
}
}
how I fix it? Thanks in advance.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
已修复
我重新安装了
google data api sdk
我做了新项目并且现在工作正常。fixed
I reinstall the
google data api sdk
do I did new project and works fine now.