Skip to content

System.Text.Json source generator configuration for AOT #1179

Closed Answered by Shane32
szymonkolasa asked this question in Q&A
Discussion options

You must be logged in to vote

As for the source generator, GraphQL.NET includes JsonConverters which will be used for deserializing variables or serializing results. You will need to enable reflection-based serialization in order for the project to compile, but there will be no reflection-based serialization actually occurring. Perhaps in the future we can update the GraphQL.NET serializers to eliminate this problem/warning.

Also, GraphQL.NET was missing a number of attributes which were preventing proper trim analysis of the project. This has been updated in GraphQL.NET 8.3.0. I suggest you update to GraphQL.NET 8.3.0 to solve many of these trimming errors.

Finally, I've added a sample project within PR #1180 demonst…

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@Shane32
Comment options

Answer selected by szymonkolasa
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants