CS0246 The type or namespace name 'MailKit' could not be found (are you missing a using directive or an assembly reference?
14:29 10 Jan 2023

I'm stuck with basic Mailkit implementation in ASP.NET Core, my error:

CS0246 The type or namespace name 'MailKit' could not be found (are you missing a using directive or an assembly reference?

using (var client = new MailKit.Net.Smtp.SmtpClient()) { ... }
c# asp.net-core mailkit