From d582dffe4047f4a785986487e9881b25d1773ba6 Mon Sep 17 00:00:00 2001 From: GeWuYou <95328647+GeWuYou@users.noreply.github.com> Date: Sat, 21 Mar 2026 21:20:32 +0800 Subject: [PATCH] =?UTF-8?q?refactor(generators):=20=E5=B0=86=E6=BA=90?= =?UTF-8?q?=E4=BB=A3=E7=A0=81=E7=94=9F=E6=88=90=E5=99=A8=E9=A1=B9=E7=9B=AE?= =?UTF-8?q?=E7=9B=AE=E6=A0=87=E6=A1=86=E6=9E=B6=E9=99=8D=E7=BA=A7=E8=87=B3?= =?UTF-8?q?=20netstandard2.0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 将 GFramework.Godot.SourceGenerators 项目的目标框架从 netstandard2.1 更改为 netstandard2.0 - 将 GFramework.SourceGenerators.Abstractions 项目的目标框架从 netstandard2.1 更改为 netstandard2.0 - 将 GFramework.SourceGenerators 项目的目标框架从 netstandard2.1 更改为 netstandard2.0 - 将 GFramework.SourceGenerators.Common 项目的目标框架从 netstandard2.1 更改为 netstandard2.0 - 从 GFramework.SourceGenerators 项目中移除对 GFramework.Core.Abstractions 的引用 - 从 GFramework.SourceGenerators.Abstractions 项目中移除对 GFramework.Core.Abstractions 的引用 - 更新 PriorityGenerator 中的语法检查逻辑,使用 Any 替代 All 进行 partial 关键字检查 - 更新 PriorityAttribute 文档注释中的 cref 格式为 c 标签 --- .../Directory.Build.props | 2 +- .../GFramework.Godot.SourceGenerators.csproj | 2 +- .../Bases/PriorityAttribute.cs | 2 +- GFramework.SourceGenerators.Abstractions/Directory.Build.props | 2 +- .../GFramework.SourceGenerators.Abstractions.csproj | 3 --- GFramework.SourceGenerators.Common/Directory.Build.props | 2 +- GFramework.SourceGenerators/Bases/PriorityGenerator.cs | 2 +- GFramework.SourceGenerators/GFramework.SourceGenerators.csproj | 3 +-- 8 files changed, 7 insertions(+), 11 deletions(-) diff --git a/GFramework.Godot.SourceGenerators.Abstractions/Directory.Build.props b/GFramework.Godot.SourceGenerators.Abstractions/Directory.Build.props index 7417131..82f43af 100644 --- a/GFramework.Godot.SourceGenerators.Abstractions/Directory.Build.props +++ b/GFramework.Godot.SourceGenerators.Abstractions/Directory.Build.props @@ -1,7 +1,7 @@ - netstandard2.1 + netstandard2.0 true true true diff --git a/GFramework.SourceGenerators.Abstractions/Bases/PriorityAttribute.cs b/GFramework.SourceGenerators.Abstractions/Bases/PriorityAttribute.cs index e5bae68..d406bb9 100644 --- a/GFramework.SourceGenerators.Abstractions/Bases/PriorityAttribute.cs +++ b/GFramework.SourceGenerators.Abstractions/Bases/PriorityAttribute.cs @@ -1,7 +1,7 @@ namespace GFramework.SourceGenerators.Abstractions.Bases; /// -/// 标记类的优先级,自动生成 接口实现 +/// 标记类的优先级,自动生成 GFramework.Core.Abstractions.Bases.IPrioritized 接口实现。 /// /// /// 使用此特性可以避免手动实现 IPrioritized 接口。 diff --git a/GFramework.SourceGenerators.Abstractions/Directory.Build.props b/GFramework.SourceGenerators.Abstractions/Directory.Build.props index 7417131..82f43af 100644 --- a/GFramework.SourceGenerators.Abstractions/Directory.Build.props +++ b/GFramework.SourceGenerators.Abstractions/Directory.Build.props @@ -1,7 +1,7 @@ - netstandard2.1 + netstandard2.0 true true - netstandard2.1 + netstandard2.0 true true true @@ -30,7 +30,6 @@ -