4

I have installed SendGrid Nugget but I am still not able to use it in my code. I keep getting this error:

SendGrid is not an attribute class

enter image description here

Even though I think I have installed everything there is to install:

enter image description here

What am I missing here? Could be something silly but I am not able to figure it out.

SamuraiJack
  • 5,131
  • 15
  • 89
  • 195

1 Answers1

2

You probably wanted Microsoft.Azure.WebJobs.Extensions.SendGrid which provides the SendGrid bindings for Azure Functions.

The basic SendGrid library knows absolutely nothing about Azure Functions.

yaakov
  • 5,552
  • 35
  • 48
  • Ooooh! I have installed `Microsoft.Azure.WebJobs.Extensions.SendGrid` and lo an behold it works!Thanks mate. Gotta love stackoverflow! – SamuraiJack Feb 18 '20 at 10:35