serilog / serilog-sinks-email

A Serilog sink that writes events to SMTP email
Apache License 2.0
75 stars 68 forks source link

Can't compile Serilog.Sinks.Email.EmailConnectionInfo #73

Closed dpomerantz-msin617 closed 11 months ago

dpomerantz-msin617 commented 5 years ago

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 };

franky1017 commented 1 year ago

Having the same problem, any updates?

nblumhardt commented 11 months ago

3.0.0-dev should sort out any remaining TFM specific issues; hope this helps! Closing as stale.