[GFX-550] build(dotnet): 升级构建目标至 .NET 10 并同步 global.json 与发布 CI - #20
Conversation
同步上游 commit 84bace0 (net10 kerryjiang#827)。Directory.Build.props: TargetFramework net8.0 → net10.0(保持单目标风格,LangVersion 不变);新增 global.json(sdk.version=10.0.0, rollForward=latestFeature);publish-nuget.yml: setup-dotnet@v1 → @v4, dotnet-version 8.0.x → 10.0.x(TFM 升级后 CI 必要配套)。 Linear: GFX-550
|
Warning Review limit reached
Next review available in: 44 minutes Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available. How can I continue?After more reviews become available, a review can be triggered using the To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews. How do review limits work?CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability. For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window. Please refer docs for additional details. Review details⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (3)
Comment |
背景
同步上游 .NET 10 构建目标(上游 commit 84bace04,net10 kerryjiang#827)。
本仓结构与上游不同(单目标
TargetFramework、LangVersion=10.0、无global.json、CI 为publish-nuget.yml),故按本仓风格做等效同步,而非 1:1 套用上游 diff。改动(3 文件)
Directory.Build.props:TargetFrameworknet8.0→net10.0(保持单目标风格,LangVersion=10.0不变)。global.json:sdk.version=10.0.0、rollForward=latestFeature(与上游一致)。.github/workflows/publish-nuget.yml:dotnet-version8.0.x→10.0.x;setup-dotnet@v1→@v4(TFM 升至 net10.0 后,原 CI 只装 .NET 8 SDK 且 v1 早于 .NET 10 发布,会导致 publish 构建失败,故配套升级)。验证
dotnet build GameFrameX.SuperSocket.sln(Debug):0 Error(234 Warning 均为既有 CS1591 缺失 XML 文档注释 + 1 NU1510,与本次升级无关)。dotnet build GameFrameX.SuperSocket.sln -c Release:0 Error。dotnet --version→ 10.0.201。bin/app/net10.0/;生成的 nupkg 内 nuspec 依赖组targetFramework=net10.0。Linear: GFX-550