egbakou / RESTCountries.NET

⚡Offline dotnet standard library to get information about countries
https://lioncoding.com
MIT License
287 stars 19 forks source link

No AOT support #26

Open archanox opened 10 months ago

archanox commented 10 months ago

When including this package in a project marked for AOT there are issues with the JSON deserialiser, which currently uses (inefficient) reflection.

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