Native AOT
koderi-dp opened this issue ยท 2 comments
koderi-dp commented
Can this library work on Native AOT?
i see that is "AOT friendly" but did someone tried it in net8?
TimothyMakkison commented
I haven't tested it in .Net 8, but Mediator doesn't use any reflection so it should be AOT safe ๐
gfoidl commented
did someone tried it in net8?
@koderi-dp it reads as you can't try it yourself -- why?
Mediator + DI from the Microsoft.Extensions works well with AOT, just note that DI doesn't use source generation, rather a (slow / interpreted) variant of expression trees when compiled for AOT.