Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make Mailkit AOT/Net9 compatible #1844

Open
PaulTaro opened this issue Nov 15, 2024 · 3 comments
Open

Make Mailkit AOT/Net9 compatible #1844

PaulTaro opened this issue Nov 15, 2024 · 3 comments
Labels
enhancement New feature or request

Comments

@PaulTaro
Copy link

I am using Mailkit in my app for Windows, Android, and iOS. For iOS I must target SDK V17 now. This is supported by Microsoft.iOS only, not more by Xamarin. To produce a release with VS2022, all assemblies should be AOT compatible. Currently I can't release my app for iOS because MailKit is not AOT compatible.

@jstedfast
Copy link
Owner

D'oh, I was just hanging out with the Microsoft.iOS and Android team leads for the past 3 days. Wish I had gotten this request a day or two ago.

Oh well. It's probably as simple as adding net-9.0 to the tfm's?

@PaulTaro
Copy link
Author

jstedfast added a commit to jstedfast/MimeKit that referenced this issue Nov 17, 2024
jstedfast added a commit to jstedfast/MimeKit that referenced this issue Nov 17, 2024
@jstedfast jstedfast added the enhancement New feature or request label Nov 28, 2024
@jstedfast
Copy link
Owner

jstedfast commented Nov 29, 2024

It seems all of the AOT compatibility issues are in MimeKit and not MailKit.

I've fixed the core MimeKit stuff to be AOT compatible (e.g. MimeKitLite should be completely AOT compatible now), but MimeKit still isn't because of all of the reflection needed in the MimeKit.Cryptography namespace - specifically the SqliteCertificateDatabase.

I don't see a path to fixing this, unfortunately.

jstedfast added a commit to jstedfast/MimeKit that referenced this issue Nov 30, 2024
jstedfast added a commit that referenced this issue Dec 10, 2024
Part of the ongoing work for issue #1844
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants