在以下代码中,出现编译错误
错误CS0246找不到类型或名称空间名称'SendGridAPIClient'(您是否缺少using指令或程序集引用?)XYZ.Core.Dll XYZ.Core.Dll \ Fabric \ AppConfiguration.cs 87活动>
我不确定我缺少哪个库
using SendGrid;
using SendGrid.Helpers.Mail;
using System.Collections.Generic;
using System.Net.Mail;
private static SendGridAPIClient _SendGridApiClient;
这是我在packages.config中拥有的
<package id="Sendgrid" version="9.10.0" targetFramework="net461" />
<package id="SendGrid.Api" version="1.0.7" targetFramework="net461" />
<package id="SendGrid.CSharp.HTTP.Client" version="3.3.0" targetFramework="net461" />
<package id="SendGrid.SmtpApi" version="1.3.3" targetFramework="net461" />
<package id="SendGridClient" version="2.0.0-preview2" targetFramework="net461" />