SDK 依赖 Newtonsoft.Json 和反射导致不支持 AOT

作者: 4Darmygeometry创建于 2026年7月2日更新于 2026年7月28日
标签resolved

Hello: I want to use Senparc.Weixin.TenPay to add WeChat payment functionality to my Avalonia UI Android application. However, Senparc.Weixin.TenPay depends on Senparc.Weixin, and Senparc.Weixin depends on Newtonsoft.Json, which causes the WeChat SDK to fail in some AOT scenarios of Avalonia Android applications. I hope Senparc.Weixin can be migrated to the System.Text.Json source generator as soon as possible to support AOT, so that this WeChat SDK can be used in Avalonia Android/IOS application development. Thank you.

内容来源: JeffreySu/WeiXinMPSDK