anthropics / anthropics/anthropic-sdk-csharp
Support AOT
- Vorherrschende Sprache
- C#
- Sterne
- 322
- Forks
- 105
- Ø Merge
- 1 T. 6 Std.
- Gemergte PRs (30 T.)
- 9
Beschreibung
Hello, would it be possible to utilize the [System.Text.Json Source Generators](https://learn.microsoft.com/en-us/dotnet/standard/serialization/system-text-json/source-generation) instead of the reflection-based approach?
In my app I have the reflection-based json serializing deactivated which resulted in the following exception occurring:
```
System.InvalidOperationException:
'Reflection-based serialization has been disabled for this application. Either use the source generator APIs or explicitly configure the 'JsonSerializerOptions.TypeInfoResolver' property.'
```
This would also be a step to make the library Native AOT compatible by default. 🙂
Beitragsleitfaden
Bewertung
Dieses Issue wurde noch nicht bewertet.