Skip to content

feat: 移除对 .NET 8.0/9.0 支持,仅保留 10.0/11.0#1111

Merged
joesdu merged 2 commits intomainfrom
dev
Feb 11, 2026
Merged

feat: 移除对 .NET 8.0/9.0 支持,仅保留 10.0/11.0#1111
joesdu merged 2 commits intomainfrom
dev

Conversation

@joesdu
Copy link
Owner

@joesdu joesdu commented Feb 11, 2026

📝 描述 (Description)

本次提交移除了所有 .NET 8.0 和 9.0 的兼容配置与依赖,仅保留 .NET 10.0 和 11.0。包括 CI/CD 配置、项目 TargetFrameworks 属性、相关包引用等同步调整,精简了依赖并提升了项目的版本要求。

🔗 相关问题 (Related Issues)

  • Closes #
  • Fixes #

🏷️ 变更类型 (Type of Change)

  • 🐛 错误修复 (Bug fix) (non-breaking change which fixes an issue)
  • ✨ 新功能 (New feature) (non-breaking change which adds functionality)
  • 💥 破坏性变更 (Breaking change) (fix or feature that would cause existing functionality to not work as expected)
  • 📚 文档更新 (Documentation update)
  • 🔧 重构 (Refactor) (no functional changes)
  • 🧪 测试 (Tests) (adding or updating tests)
  • 🛠️ 构建/CI 变更 (Build/CI changes)
  • 🎨 样式变更 (Style changes) (formatting, etc.)
  • 🚀 性能改进 (Performance improvements)
  • 🔒 安全改进 (Security improvements)

✅ 检查清单 (Checklist)

  • 我的代码遵循项目的编码标准 (My code follows the project's coding standards)
  • 我已经对自己的代码进行了自我审查 (I have performed a self-review of my own code)
  • 我已经在难以理解的区域注释了我的代码 (I have commented my code, particularly in hard-to-understand areas)
  • 我已经对文档进行了相应的更改 (I have made corresponding changes to the documentation)
  • 我的更改不会产生新的警告或错误 (My changes generate no new warnings or errors)
  • 我已经添加了证明我的修复有效或我的功能工作的测试 (I have added tests that prove my fix is effective or that my feature works)
  • 新增和现有的单元测试在本地通过我的更改 (New and existing unit tests pass locally with my changes)
  • 任何依赖变更都已合并并发布到下游模块 (Any dependent changes have been merged and published in downstream modules)

🧪 测试 (Testing)

  • 单元测试 (Unit tests)
  • 集成测试 (Integration tests)
  • 手动测试 (Manual testing)
  • 其他 (请指定) (Other (please specify)):

📸 截图 (如果适用) (Screenshots (if applicable))

🔍 附加说明 (Additional Notes)

本次提交移除了所有 .NET 8.0 和 9.0 的兼容配置与依赖,仅保留 .NET 10.0 和 11.0。包括 CI/CD 配置、项目 TargetFrameworks 属性、相关包引用等同步调整,精简了依赖并提升了项目的版本要求。
Copilot AI review requested due to automatic review settings February 11, 2026 03:21
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR removes support for .NET 8.0 and 9.0, retaining only .NET 10.0 and 11.0 as target frameworks. This is a breaking change that simplifies the project's multi-targeting strategy and eliminates the need for backport packages like Backport.System.Threading.Lock which provided .NET 9.0+ features to .NET 8.0.

Changes:

  • Updated centralized target frameworks from net8.0;net9.0;net10.0;net11.0 to net10.0;net11.0
  • Removed .NET 8.0 and 9.0 from CI/CD workflows (build_test.yml and releaser.yml)
  • Removed conditional package references to Backport.System.Threading.Lock for .NET 8.0

Reviewed changes

Copilot reviewed 6 out of 6 changed files in this pull request and generated no comments.

Show a summary per file
File Description
src/Directory.Build.props Updated centralized TargetFrameworks to net10.0;net11.0 only
src/Directory.Packages.props Removed Backport.System.Threading.Lock package version entry for net8.0
src/EasilyNET.Core/EasilyNET.Core.csproj Removed conditional ItemGroup referencing Backport.System.Threading.Lock for net8.0
test/EasilyNET.Test.Unit/EasilyNET.Test.Unit.csproj Updated test project TargetFrameworks and removed SuppressTfmSupportBuildWarnings
.github/workflows/releaser.yml Removed .NET 8.0.x and 9.0.x from dotnet-version matrix
.github/workflows/build_test.yml Removed .NET 8.0.x and 9.0.x from dotnet-version matrix

本次更新精简了 README.md 关于 .NET SDK 的描述,去除了 net8.0、net9.0、net10.0 多目标框架的具体说明,仅强调需使用最新 SDK(含预览特性)。英文说明同步调整。
@joesdu joesdu merged commit 85c0491 into main Feb 11, 2026
6 of 7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant