Skip to content

Repository files navigation

Bedrock 公共组件库

本仓库包含多组可发布的 .NET 6 组件,面向通用基础能力建设与复用。

项目结构

  • Core:核心基础能力与通用扩展
  • Data:数据访问与基础数据工具
  • Logging:日志组件
  • LoggingV2:日志组件(新版)
  • Security:安全与加密相关
  • Http:HTTP 相关基础能力
  • Algorithms:常用算法工具

版本与发布

  • 版本号在各项目的 *.csproj 中维护(<Version>)。
  • 推送到 master 分支会自动触发打包与发布。
  • 也支持在 GitHub Actions 手动触发发布(workflow_dispatch)。

发布前检查清单

  • 确认本次需要发布的项目版本号已更新。
  • GitHub 仓库已配置 NUGET_API_KEY(Secrets)。

自动打包流程(GitHub Actions)

工作流文件:.github/workflows/publish-nuget.yml 执行步骤:

  1. dotnet restore
  2. dotnet build -c Release
  3. dotnet pack 输出到 ./packages
  4. dotnet nuget push 发布到 NuGet.org

本地打包示例

dotnet pack Core/Bedrock.Core.csproj -c Release -o ./packages

About

自研的公共库

Resources

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages