本仓库包含多组可发布的 .NET 6 组件,面向通用基础能力建设与复用。
Core:核心基础能力与通用扩展Data:数据访问与基础数据工具Logging:日志组件LoggingV2:日志组件(新版)Security:安全与加密相关Http:HTTP 相关基础能力Algorithms:常用算法工具
- 版本号在各项目的
*.csproj中维护(<Version>)。 - 推送到
master分支会自动触发打包与发布。 - 也支持在 GitHub Actions 手动触发发布(
workflow_dispatch)。
- 确认本次需要发布的项目版本号已更新。
- GitHub 仓库已配置
NUGET_API_KEY(Secrets)。
工作流文件:.github/workflows/publish-nuget.yml
执行步骤:
dotnet restoredotnet build -c Releasedotnet pack输出到./packagesdotnet nuget push发布到 NuGet.org
dotnet pack Core/Bedrock.Core.csproj -c Release -o ./packages