0 votes

Hi, I am trying to use this dll in a .net core 2.1 project which will then uploaded to aws lambda.

My problem is as soon as create a new instance of new MailBox, it throws the exception:

System.IO.FileNotFoundException: 'Could not load file or assembly 'System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'. The system cannot find the file specified.'

by

1 Answer

0 votes
 
Best answer

Yes, you can use Mail.dll in .NET core with no problems

You just need to reference .net standard assembly:

Please use NuGet (NuGet references correct Mail.dll version automatically):

PM> Install-Package Mail.dll

-or-

Reference .NET standard assembly from:

[InstallFolder]\Redistributables\netstandard2.0\Mail.dll 

installation folder.

by (297k points)
...