Open LonerKO opened 1 year ago
i don't think it will ever be possible unless this library uses STJ. https://github.com/JamesNK/Newtonsoft.Json/issues/2732
edit: too bad https://github.com/discord-net/Discord.Net/pull/2493
i don't think it will ever be possible unless this library uses STJ.
v4 will use STJ as the default serializer. will have to wait for now
@Misha-133 really? there was a PR about STJ but it was closed.
@Misha-133 really? there was a PR about STJ but it was closed.
Yeah, but it was targeting v3. V4 will have reworked REST implementation with support for STJ.
Check The Docs
Verify Issue Source
Check your intents
Description
AOT deployment not works.
There are some bugs with JSON serialization and deserialization.
[Native-AOT] Using Json Serialize and Deserialize with Native AOT https://github.com/dotnet/runtimelab/issues/635
How to use source generation in System.Text.Json https://learn.microsoft.com/en-us/dotnet/standard/serialization/system-text-json/source-generation
Please add support for native AOT deployment.
Version
3.10.0
Working Version
-
Logs
Sample
No response
Packages
Newtonsoft.Json - 13.0.3 Discord.Net - 3.10.0