I get this compiler error message when I try to call new Serilog.Sinks.Email.EmailConnectionInfo().
The type 'EmailConnectionInfo' exists in both 'Serilog.Sinks.Email, Version=2.3.0.0, Culture=neutral, PublicKeyToken=24c2f752a8e58a10' and 'Serilog.Sinks.SendGridEmail, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null'
I'm not even using Serilog.Sinks.SendGridEmail.
Please advise.
Here's my code:
var emailConnection = new Serilog.Sinks.Email.EmailConnectionInfo() { Port = 587, FromEmail = emailConfig.From, ToEmail = emailConfig.MailTo, NetworkCredentials = new NetworkCredential(emailConfig.User, emailConfig.Password), MailServer = emailConfig.Host };
I get this compiler error message when I try to call new Serilog.Sinks.Email.EmailConnectionInfo().
The type 'EmailConnectionInfo' exists in both 'Serilog.Sinks.Email, Version=2.3.0.0, Culture=neutral, PublicKeyToken=24c2f752a8e58a10' and 'Serilog.Sinks.SendGridEmail, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null'
I'm not even using Serilog.Sinks.SendGridEmail.Please advise. Here's my code:
var emailConnection = new Serilog.Sinks.Email.EmailConnectionInfo() { Port = 587, FromEmail = emailConfig.From, ToEmail = emailConfig.MailTo, NetworkCredentials = new NetworkCredential(emailConfig.User, emailConfig.Password), MailServer = emailConfig.Host };