From 2122201a30c79a289173106c27383e604d773fbc Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Fri, 16 Jan 2026 05:34:41 +0000 Subject: [PATCH 1/2] Initial plan From 43f6d0919b384f550383d14cfdd38006e6181aaa Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Fri, 16 Jan 2026 05:39:04 +0000 Subject: [PATCH 2/2] Remove [Serializable] attribute from TranslatableXmlModel The [Serializable] attribute is no longer needed as binary serialization has been removed in modern .NET versions. This class uses XmlSerializer which doesn't require the [Serializable] attribute. All tests pass after this change. Co-authored-by: Soar360 <15421284+Soar360@users.noreply.github.com> --- src/LuYao.Common/Xml/TranslatableXmlModel.cs | 1 - 1 file changed, 1 deletion(-) diff --git a/src/LuYao.Common/Xml/TranslatableXmlModel.cs b/src/LuYao.Common/Xml/TranslatableXmlModel.cs index dc18011..4b9342a 100644 --- a/src/LuYao.Common/Xml/TranslatableXmlModel.cs +++ b/src/LuYao.Common/Xml/TranslatableXmlModel.cs @@ -16,7 +16,6 @@ namespace LuYao.Xml; /// 2. 自动反序列化 XML /// 3. 支持转换后的回调处理 /// -[Serializable] public abstract class TranslatableXmlModel where T : TranslatableXmlModel { private static readonly XmlSerializer XmlSerializer;