AOT support? #3701
-
|
Is there a doc / guide to what parts of brighter are or are not AOT compatible? I have a project where AOT compatibility is a requirement, and I want to use brighter, but I don't want to get halfway through and discover that some functionality would break AOT compatibility. Thanks! |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments
-
|
Hey @lukedukeus for now Brighter doesn't have official support to AOT, maybe on V11 we are going to focus more this (like adding AOT attributes), but as far as I know there is some people using Brighter with AOT without issue |
Beta Was this translation helpful? Give feedback.
-
|
@SteveBush can you share your experience with Brighter + AOT? |
Beta Was this translation helpful? Give feedback.
-
|
I have incorporated Brighter into an MAUI client application that supports WinUI, IOS, Android, and MacCatalyst. IOS and MacCatalyst are AOT compiled. I have unit tests that exercise Brighter across all four client platforms and WPF (net472). I have used the SQLite inbox and outbox implementations on all clients. Hangfire does not support net472 due to code signing issues, so I don't use the Hangfire scheduler integration. It really depends on what you're planning on doing. |
Beta Was this translation helpful? Give feedback.
-
|
So far, it seems to be working out of the box with AOT. The only modification I have had to make is using source generation for json serialization. I added this to my startup: And added the message type to the serializer: |
Beta Was this translation helpful? Give feedback.
I have incorporated Brighter into an MAUI client application that supports WinUI, IOS, Android, and MacCatalyst. IOS and MacCatalyst are AOT compiled.
I have unit tests that exercise Brighter across all four client platforms and WPF (net472). I have used the SQLite inbox and outbox implementations on all clients.
Hangfire does not support net472 due to code signing issues, so I don't use the Hangfire scheduler integration.
It really depends on what you're planning on doing.