升级整个项目到 .NET 10 / Upgrade entire project to .NET 10#11
Merged
Conversation
Co-authored-by: LazuliKao <46601807+LazuliKao@users.noreply.github.com>
Co-authored-by: LazuliKao <46601807+LazuliKao@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Update entire project to .NET 10
升级整个项目到 .NET 10 / Upgrade entire project to .NET 10
Oct 17, 2025
Co-authored-by: LazuliKao <46601807+LazuliKao@users.noreply.github.com>
Contributor
Author
Updated Dockerfile to use |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
概述 / Overview
本 PR 将 HuaJiBot.NET 项目从 .NET 9 升级到 .NET 10,为未来的 .NET 10 发布做好准备。
This PR upgrades the HuaJiBot.NET project from .NET 9 to .NET 10, preparing the project for the upcoming .NET 10 release.
主要变更 / Key Changes
1. 项目文件 / Project Files
更新了 14 个项目文件的目标框架从
net9.0到net10.0:注意:HuaJiBot.NET.SourceGenerator 保持
netstandard2.0目标框架,以确保与 Roslyn 分析器的兼容性。Updated 14 project files from
net9.0tonet10.0target framework, while keeping the SourceGenerator atnetstandard2.0for Roslyn compatibility.2. Docker 支持 / Docker Support
更新
Dockerfile:mcr.microsoft.com/dotnet/sdk:9.0-alpine→10.0-alpinemcr.microsoft.com/dotnet/runtime:9.0-alpine→10.0-azurelinux3.0-distroless--framework net9.0→--framework net10.0Migrated to distroless runtime image (
10.0-azurelinux3.0-distroless) for improved security and smaller container size.3. CI/CD
更新 GitHub Actions 工作流 (
.github/workflows/build-plugins.yml):Updated GitHub Actions workflow to use .NET 10.x SDK for builds.
4. 构建脚本 / Build Scripts
更新
build.sh脚本中的框架版本参数5. 文档 / Documentation
更新
README.md中的开发要求,将 .NET SDK 版本从 8 更新到 10影响范围 / Impact
All changes are minimal and surgical, affecting only version numbers without impacting existing code logic or functionality. The distroless runtime image provides enhanced security with minimal attack surface.
测试 / Testing
项目配置已更新完成,待 .NET 10 SDK 正式发布后即可进行构建和测试。
The project configuration is now ready and will be able to build once the .NET 10 SDK is officially released.
文件统计 / File Statistics
关闭 / Closes #[issue_number]
Original prompt
✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.