Skip to content

Source generators usage to remove trim warnings #16

Open

Description

@Pixel-Tony

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?

Activity

  1. CppCXY commented on Jul 28, 2025

    @CppCXY
    Owner

    I remember I used source generation, and I disabled the reflection approach.

  2. Pixel-Tony commented on Jul 29, 2025

    @Pixel-Tony
    Author

    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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions