EMail'在未引用的程序集中定义

本文关键字:程序 程序集 集中 定义 引用 EMail | 更新日期: 2023-09-27 18:17:06

我得到以下错误:

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();

        }
    }

我如何修复它?

EMail'在未引用的程序集中定义

fixed

我重新安装了google data api sdk,我做了一个新的项目,现在工作正常。