You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Source generators usage to remove trim warnings #16
I am not sure why, but I receive trim warning when trying to build AOT with the framework. It seems that they are generated due to using json serializers, and the intended way is to use source generators for that.
Do You think that it is viable to switch to source generator syntax for serializers (it should be an easy task, a matter of one annotated partial method per class) to remove the warnings?
I think some classes can be serialized as it is, but for some of the other (mostly ...Params family) it still suggests that You use explicit attribute usage. I will try to look around and see if specific issues can be fixed with that.
Activity
CppCXY commentedon Jul 28, 2025
I remember I used source generation, and I disabled the reflection approach.
Pixel-Tony commentedon Jul 29, 2025
I think some classes can be serialized as it is, but for some of the other (mostly
...Paramsfamily) it still suggests that You use explicit attribute usage. I will try to look around and see if specific issues can be fixed with that.