From 496137661d96706d7ee8eade6364bcbdf7d8f2c3 Mon Sep 17 00:00:00 2001 From: GwWuYou <95328647+GeWuYou@users.noreply.github.com> Date: Wed, 10 Dec 2025 12:06:23 +0800 Subject: [PATCH] =?UTF-8?q?build(publish):=20=E6=9B=B4=E6=96=B0=E5=8F=91?= =?UTF-8?q?=E5=B8=83=E9=85=8D=E7=BD=AE=E4=BB=A5=E5=8C=85=E5=90=AB=E7=AC=A6?= =?UTF-8?q?=E5=8F=B7=E5=92=8C=E5=8C=85=E7=94=9F=E6=88=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 在构建命令中添加 --include-symbols 参数 - 启用 GeneratePackageOnBuild 属性以自动生成 NuGet 包 - 确保发布流程包含调试符号和源代码嵌入 --- .github/workflows/publish.yml | 2 +- GFramework.csproj | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index eb6bb17..525a2dd 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -40,7 +40,7 @@ jobs: run: dotnet restore - name: Build - run: dotnet build -c Release --no-restore -p:DebugType=portable + run: dotnet build -c Release --include-symbols --no-restore -p:DebugType=portable - name: Test run: dotnet test --no-build -c Release --verbosity normal diff --git a/GFramework.csproj b/GFramework.csproj index b68273c..5f19765 100644 --- a/GFramework.csproj +++ b/GFramework.csproj @@ -12,7 +12,7 @@ https://github.com/GeWuYou/GFramework MIT game;framework - false + true true true true