egbakou / egbakou/RESTCountries.NET

No AOT support

Open
#26 0 comments 2 reactions 0 assignees View on GitHub
enhancement good first issue
Dominant language
C#
Stars
293
Forks
21
PR merge metrics
No merged PRs in 30d

Description

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.
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.