graphql-client icon indicating copy to clipboard operation
graphql-client copied to clipboard

.NET 8.0 Issue w/ SystemTextJsonSerializer

Open Sigrec opened this issue 1 year ago • 1 comments
trafficstars

When making a call this is the error I receive and it causes the call to always return a null value, is there a way to resolve this?

Reflection-based serialization has been disabled for this application. Either use the source generator APIs or explicitly configure the 'JsonSerializerOptions.TypeInfoResolver' property."

Sigrec avatar Nov 30 '23 18:11 Sigrec

https://devblogs.microsoft.com/dotnet/system-text-json-in-dotnet-8/

This library does not use trimming and does not have the feature switch IsReflectionEnabledByDefault set. Please check your project.

rose-a avatar Dec 01 '23 07:12 rose-a