Skip to content

[Chore]: 清理 IDE 冗余配置并为 NuGet 打包添加元数据支持#13

Merged
SunYanbox merged 4 commits into
masterfrom
develop
Apr 13, 2026
Merged

[Chore]: 清理 IDE 冗余配置并为 NuGet 打包添加元数据支持#13
SunYanbox merged 4 commits into
masterfrom
develop

Conversation

@SunYanbox
Copy link
Copy Markdown
Owner

变更详情

fix(project): 清理 Rider 自动添加的冗余 .user 文件配置

  • 问题描述:Rider IDE 会自动生成 .user 文件,并可能将其以 <Content> 形式误加入项目文件中。
  • 修复内容
    • SuntionCore.SPTExtensions.csproj 中移除 SuntionCore.SPTExtensions.userSuntionCore.csproj.user<Content> 引用
    • 清理 SuntionCore.csproj 中重复的 SuntionCore.csproj.user 导入

build(core): 配置项目元数据以支持 NuGet 打包

  • 新增内容:为支持 NuGet 包发布,在项目文件中添加必要元数据:
    • SuntionCore.csproj:新增 PackageIdAuthorsCompany 属性
    • SuntionCore.SPTExtensions.csproj:新增 PackageIdAuthorsCompany 属性

refactor(publish): 重构 NuGet 发布的 GitHub Actions 工作流

  • 变更目标:提升 CI 流水线的清晰度与可维护性
  • 主要改动
    • 合并冗余的构建与发布任务
    • 优化步骤顺序与命名,提升可读性
    • 集成官方 nuget-org/trusted-publishing 机制,增强发布安全性

- 修复问题: 移除 IDE 自动生成的无效配置文件引用
  * 删除 SuntionCore.SPTExtensions.csproj 中 `SuntionCore.SPTExtensions.user` 和 `SuntionCore.csproj.user` 的 `<Content>` 导入
  * 清理 SuntionCore.csproj 中 `SuntionCore.csproj.user` 的重复 `<Content>` 导入
- 新增功能: 为核心库模块添加 NuGet 包元数据
  * SuntionCore.csproj 新增 PackageId, Authors 和 Company 属性
  * SuntionCore.SPTExtensions.csproj 新增 PackageId, Authors 和 Company 属性
Refactor GitHub Actions workflow for building and publishing NuGet packages. Consolidate jobs and update steps for improved clarity and functionality.

use `nuget-org/trusted-publishing`
@SunYanbox SunYanbox added bug Something isn't working enhancement New feature or request labels Apr 13, 2026
@SunYanbox SunYanbox merged commit 605b9f6 into master Apr 13, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant