.NET 5 and Single File Deployment Compatibility

Is PublishSingleFile supported for Aspose.Email deployments? I’m getting an exception when I try and run a .Net 5 single file executable. This exception happens on Linux, macOS, and Windows. Below is the exception.

Unhandled exception. System.ArgumentNullException: Value cannot be null. (Parameter 'path1')
   at System.IO.Path.Combine(String path1, String path2)
   at ​  .()
   at ​  .(String )
   at Aspose.Email.Clients.EmailClient.ResetLogSettings()
   at Aspose.Email.Clients.EmailClient..ctor(String type, String host, Int32 port, String username, String authInfo, Boolean useOAuth, SecurityOptions securityOptions)
   at Aspose.Email.Clients.EmailClient..ctor(String type)
   at Aspose.Email.Clients.Imap.ImapClient..ctor()
   at AsposeEmailTest.Program.Main(String[] args)
   at AsposeEmailTest.Program.<Main>(String[] args)

The code is here:

ImapClient imapClient = new ImapClient();

imapClient.Host = host;
imapClient.Port = port;
imapClient.Username = username;
imapClient.Password = password;

Console.WriteLine(imapClient.MailboxInfo.Inbox.Name);

@bpm-1,
Thank you for posting the query. I will answer you as soon as possible.

@bpm-1,
I reproduced the problem you described above on my side. Aspose.Email must support single file deployment for .NET 5. I logged the issue with ID EMAILNET-40348 in our tracking system. Our development team will investigate this case. You will be notified when it is fixed.

The issues you have found earlier (filed as EMAILNET-40348) have been fixed in this update.