From 665b3e8396cc4915808b4da73b5f2a4e0d61780e Mon Sep 17 00:00:00 2001
From: GeWuYou <95328647+GeWuYou@users.noreply.github.com>
Date: Fri, 17 Apr 2026 21:03:02 +0800
Subject: [PATCH] =?UTF-8?q?feat(build):=20=E4=BF=AE=E6=94=B9=E9=A1=B9?=
=?UTF-8?q?=E7=9B=AE=E6=9E=84=E5=BB=BA=E9=85=8D=E7=BD=AE=E5=92=8C=E4=BE=9D?=
=?UTF-8?q?=E8=B5=96=E7=AE=A1=E7=90=86?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
- 添加 Directory.Build.props 统一构建属性配置
- 配置 netstandard2.0 和 netstandard2.1 目标框架
- 集成 Meziantou.Polyfill 提供新特性支持
- 设置 Nullable 启用可空类型检查
- 配置文档文件生成和包标识设置
- 添加 Microsoft.CodeAnalysis 相关包引用
- 配置项目引用和命名空间引入规则
---
Directory.Build.props | 13 +++++++++++++
GFramework.Core.Abstractions/Directory.Build.props | 10 ++--------
.../GFramework.Core.Abstractions.csproj | 8 --------
.../Directory.Build.props | 10 ++--------
...mework.Core.SourceGenerators.Abstractions.csproj | 10 ----------
GFramework.Cqrs.Abstractions/Directory.Build.props | 10 ++--------
.../Directory.Build.props | 10 ++--------
GFramework.Game.Abstractions/Directory.Build.props | 10 ++--------
.../GFramework.Game.Abstractions.csproj | 10 ----------
.../Directory.Build.props | 10 ++--------
...ework.Godot.SourceGenerators.Abstractions.csproj | 10 ----------
.../Directory.Build.props | 10 ++--------
.../GFramework.SourceGenerators.Common.csproj | 8 --------
13 files changed, 27 insertions(+), 102 deletions(-)
create mode 100644 Directory.Build.props
diff --git a/Directory.Build.props b/Directory.Build.props
new file mode 100644
index 00000000..99002fa5
--- /dev/null
+++ b/Directory.Build.props
@@ -0,0 +1,13 @@
+
+
+
+
+ all
+ runtime; build; native; contentfiles; analyzers
+
+
+ all
+ runtime; build; native; contentfiles; analyzers
+
+
+
diff --git a/GFramework.Core.Abstractions/Directory.Build.props b/GFramework.Core.Abstractions/Directory.Build.props
index 74171312..fba1246a 100644
--- a/GFramework.Core.Abstractions/Directory.Build.props
+++ b/GFramework.Core.Abstractions/Directory.Build.props
@@ -12,13 +12,7 @@
preview
-
- all
- runtime; build; native; contentfiles; analyzers
-
-
- all
- runtime; build; native; contentfiles; analyzers
-
+
+
diff --git a/GFramework.Core.Abstractions/GFramework.Core.Abstractions.csproj b/GFramework.Core.Abstractions/GFramework.Core.Abstractions.csproj
index 999f8799..87f22e5c 100644
--- a/GFramework.Core.Abstractions/GFramework.Core.Abstractions.csproj
+++ b/GFramework.Core.Abstractions/GFramework.Core.Abstractions.csproj
@@ -21,14 +21,6 @@
-
- all
- runtime; build; native; contentfiles; analyzers
-
-
- all
- runtime; build; native; contentfiles; analyzers
-
diff --git a/GFramework.Core.SourceGenerators.Abstractions/Directory.Build.props b/GFramework.Core.SourceGenerators.Abstractions/Directory.Build.props
index 82f43afc..5ad03b43 100644
--- a/GFramework.Core.SourceGenerators.Abstractions/Directory.Build.props
+++ b/GFramework.Core.SourceGenerators.Abstractions/Directory.Build.props
@@ -12,13 +12,7 @@
preview
-
- all
- runtime; build; native; contentfiles; analyzers
-
-
- all
- runtime; build; native; contentfiles; analyzers
-
+
+
diff --git a/GFramework.Core.SourceGenerators.Abstractions/GFramework.Core.SourceGenerators.Abstractions.csproj b/GFramework.Core.SourceGenerators.Abstractions/GFramework.Core.SourceGenerators.Abstractions.csproj
index 03d4dd42..7bf582af 100644
--- a/GFramework.Core.SourceGenerators.Abstractions/GFramework.Core.SourceGenerators.Abstractions.csproj
+++ b/GFramework.Core.SourceGenerators.Abstractions/GFramework.Core.SourceGenerators.Abstractions.csproj
@@ -14,14 +14,4 @@
-
-
- all
- runtime; build; native; contentfiles; analyzers
-
-
- all
- runtime; build; native; contentfiles; analyzers
-
-
diff --git a/GFramework.Cqrs.Abstractions/Directory.Build.props b/GFramework.Cqrs.Abstractions/Directory.Build.props
index 4b2d6dbd..7048b301 100644
--- a/GFramework.Cqrs.Abstractions/Directory.Build.props
+++ b/GFramework.Cqrs.Abstractions/Directory.Build.props
@@ -6,13 +6,7 @@
preview
-
- all
- runtime; build; native; contentfiles; analyzers
-
-
- all
- runtime; build; native; contentfiles; analyzers
-
+
+
diff --git a/GFramework.Ecs.Arch.Abstractions/Directory.Build.props b/GFramework.Ecs.Arch.Abstractions/Directory.Build.props
index 618e5709..7048b301 100644
--- a/GFramework.Ecs.Arch.Abstractions/Directory.Build.props
+++ b/GFramework.Ecs.Arch.Abstractions/Directory.Build.props
@@ -6,13 +6,7 @@
preview
-
- all
- runtime; build; native; contentfiles; analyzers
-
-
- all
- runtime; build; native; contentfiles; analyzers
-
+
+
diff --git a/GFramework.Game.Abstractions/Directory.Build.props b/GFramework.Game.Abstractions/Directory.Build.props
index ef6dc3c2..b64f611a 100644
--- a/GFramework.Game.Abstractions/Directory.Build.props
+++ b/GFramework.Game.Abstractions/Directory.Build.props
@@ -12,13 +12,7 @@
preview
-
- all
- runtime; build; native; contentfiles; analyzers
-
-
- all
- runtime; build; native; contentfiles; analyzers
-
+
+
diff --git a/GFramework.Game.Abstractions/GFramework.Game.Abstractions.csproj b/GFramework.Game.Abstractions/GFramework.Game.Abstractions.csproj
index b2610e69..bb5717f6 100644
--- a/GFramework.Game.Abstractions/GFramework.Game.Abstractions.csproj
+++ b/GFramework.Game.Abstractions/GFramework.Game.Abstractions.csproj
@@ -19,14 +19,4 @@
-
-
- all
- runtime; build; native; contentfiles; analyzers
-
-
- all
- runtime; build; native; contentfiles; analyzers
-
-
diff --git a/GFramework.Godot.SourceGenerators.Abstractions/Directory.Build.props b/GFramework.Godot.SourceGenerators.Abstractions/Directory.Build.props
index 82f43afc..5ad03b43 100644
--- a/GFramework.Godot.SourceGenerators.Abstractions/Directory.Build.props
+++ b/GFramework.Godot.SourceGenerators.Abstractions/Directory.Build.props
@@ -12,13 +12,7 @@
preview
-
- all
- runtime; build; native; contentfiles; analyzers
-
-
- all
- runtime; build; native; contentfiles; analyzers
-
+
+
diff --git a/GFramework.Godot.SourceGenerators.Abstractions/GFramework.Godot.SourceGenerators.Abstractions.csproj b/GFramework.Godot.SourceGenerators.Abstractions/GFramework.Godot.SourceGenerators.Abstractions.csproj
index a5c91006..477e9bcd 100644
--- a/GFramework.Godot.SourceGenerators.Abstractions/GFramework.Godot.SourceGenerators.Abstractions.csproj
+++ b/GFramework.Godot.SourceGenerators.Abstractions/GFramework.Godot.SourceGenerators.Abstractions.csproj
@@ -18,14 +18,4 @@
-
-
- all
- runtime; build; native; contentfiles; analyzers
-
-
- all
- runtime; build; native; contentfiles; analyzers
-
-
diff --git a/GFramework.SourceGenerators.Common/Directory.Build.props b/GFramework.SourceGenerators.Common/Directory.Build.props
index 82f43afc..5ad03b43 100644
--- a/GFramework.SourceGenerators.Common/Directory.Build.props
+++ b/GFramework.SourceGenerators.Common/Directory.Build.props
@@ -12,13 +12,7 @@
preview
-
- all
- runtime; build; native; contentfiles; analyzers
-
-
- all
- runtime; build; native; contentfiles; analyzers
-
+
+
diff --git a/GFramework.SourceGenerators.Common/GFramework.SourceGenerators.Common.csproj b/GFramework.SourceGenerators.Common/GFramework.SourceGenerators.Common.csproj
index ec0a04e9..6cdde7c2 100644
--- a/GFramework.SourceGenerators.Common/GFramework.SourceGenerators.Common.csproj
+++ b/GFramework.SourceGenerators.Common/GFramework.SourceGenerators.Common.csproj
@@ -22,14 +22,6 @@
runtime; build; native; contentfiles; analyzers
-
- all
- runtime; build; native; contentfiles; analyzers
-
-
- all
- runtime; build; native; contentfiles; analyzers
-