AlexStocks opened a new issue, #5:
URL: https://github.com/apache/dubbo-net/issues/5

   ## 问题
   
   `DubboNet.csproj:4` 与两个测试项目的 TFM 都是 `net6.0`,而 **.NET 6 已于 2024-11-12 
结束支持**,不再有安全补丁。以 EOL 框架作为唯一目标框架,对一个刚刚进入 Apache 的项目是明显的长期负担:
   
   - 使用方在受合规约束的环境里无法引用。
   - 后续一旦出现 .NET 6 的已知漏洞,包无法修复。
   - `.github/workflows` 里的 `dotnet-version: 6.0.x` 同样是 EOL SDK。
   
   ## 受影响的文件
   
   ```
   DubboNet.csproj:4                                   
<TargetFramework>net6.0</TargetFramework>
   Tests/UnitTestForDubboNet/UnitTestForDubboNet.csproj  net6.0
   Tests/DubboClientIntegrationTests/*.csproj            net6.0
   Tests/QueryDemo/*.csproj                              net6.0
   Tests/DubboClientIntegrationTests/Dockerfile          
mcr.microsoft.com/dotnet/{runtime,sdk}:6.0
   ```
   
   ## 建议
   
   1. 库项目改为**多目标**,覆盖当前 LTS 与下一个 LTS:
      ```xml
      <TargetFrameworks>net8.0;net10.0</TargetFrameworks>
      ```
      若短期必须兼容 net6 使用方,可保留 `net6.0` 作为第三目标但加注释说明 EOL,并设定移除时间点。
   2. 测试/示例项目跟随最新 LTS 即可,不必多目标。
   3. 更新 `Dockerfile` 的 runtime/sdk 镜像 tag。
   4. 同步调整 CI 的 `dotnet-version`。
   
   ## 注意
   
   README 开头写明"目标框架 .NET 6,可被 .NET 6 及以上引用"。多目标改造后这一句需要同步改写,并补充各目标框架的行为一致性说明(尤其 
Hessian2 编解码里的 `Encoding` / `DateTimeOffset` 相关分支)。
   
   ## 验收
   
   - `dotnet build` 对所有 TFM 通过,`dotnet test` 至少在最新 LTS 上全绿。
   - NuGet 包里出现多个 `lib/<tfm>/` 目录。
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to