c# - SendGrid 不是属性类

标签 c# azure asp.net-core sendgrid azure-function-app

我已经安装了 SendGrid Nugget,但我仍然无法在我的代码中使用它。 我不断收到此错误:

SendGrid is not an attribute class

enter image description here

尽管我认为我已经安装了需要安装的所有内容:

enter image description here

我在这里缺少什么?可能是一些愚蠢的事情,但我无法弄清楚。

最佳答案

您可能想要Microsoft.Azure.WebJobs.Extensions.SendGrid它为 Azure Functions 提供 SendGrid 绑定(bind)。

基本的 SendGrid 库对 Azure Functions 完全一无所知。

关于c# - SendGrid 不是属性类,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/60277780/

相关文章:

c# - 如何停止数据驱动的编码 ui 测试

基于Java的Azure函数-异常: ClassCastException: class jdk.internal.loader.ClassLoaders$AppClassLoader无法转换

node.js - 使用特定 Node 版本通过 Azure 部署静态 Web 应用程序

c# - 为什么在正文中向 ASP.NET Core 3.1 WEB API 或 MVC Controller 提取带有 JSON 参数的 Post 请求没有得到任何内容?

c# - Fluent Nhibernate QueryOver 仅按日期获取记录而没有时间

c# - 从 Main() c# 调用在非静态类中定义的非扩展方法

c# - 在不依赖 Azure 云服务的情况下读写 Excel 的最佳方式?

mysql - 增加 Entity Framework 连接和查询

c# - 如何在 ASP.NET Core Identity 中注销用户

c# - 进行字符串搜索和替换的最佳方法