anthropics / anthropics/anthropic-sdk-csharp
Support AOT
- 主要言語
- C#
- スター
- 322
- フォーク
- 105
- 平均マージ
- 1日 6時間
- マージ済み PR(30日)
- 9
説明
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. 🙂
コントリビューションガイド
評価
この issue はまだ評価されていません。