build: 添加 RollForward Major 兼容 .NET 10 runtime (目标保持 net9.0)

This commit is contained in:
xiaoou
2026-07-04 10:54:51 +08:00
parent 45a1036cbd
commit 68e2f51632
4 changed files with 7 additions and 4 deletions

View File

@ -6,7 +6,8 @@
<PropertyGroup> <PropertyGroup>
<OutputType>Exe</OutputType> <OutputType>Exe</OutputType>
<TargetFramework>net10.0</TargetFramework> <TargetFramework>net9.0</TargetFramework>
<RollForward>Major</RollForward>
<ImplicitUsings>enable</ImplicitUsings> <ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable> <Nullable>enable</Nullable>
</PropertyGroup> </PropertyGroup>

View File

@ -1,9 +1,10 @@
<Project Sdk="Microsoft.NET.Sdk"> <Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup> <PropertyGroup>
<TargetFramework>net10.0</TargetFramework> <TargetFramework>net9.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings> <ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable> <Nullable>enable</Nullable>
<RollForward>Major</RollForward>
<IsPackable>false</IsPackable> <IsPackable>false</IsPackable>
</PropertyGroup> </PropertyGroup>

View File

@ -1,7 +1,8 @@
<Project Sdk="Microsoft.NET.Sdk"> <Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup> <PropertyGroup>
<TargetFramework>net10.0</TargetFramework> <TargetFramework>net9.0</TargetFramework>
<RollForward>Major</RollForward>
<ImplicitUsings>enable</ImplicitUsings> <ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable> <Nullable>enable</Nullable>
</PropertyGroup> </PropertyGroup>

View File

@ -9,7 +9,7 @@
| 依赖 | 版本 | 说明 | | 依赖 | 版本 | 说明 |
|------|------|------| |------|------|------|
| .NET SDK | **10.0** | 编译和运行 | | .NET SDK | **9.0+** | 编译和运行。.NET 10 也可运行RollForward 已配置) |
| YamlDotNet | 18.1.0 | NuGet 自动拉取,无需手动安装 | | YamlDotNet | 18.1.0 | NuGet 自动拉取,无需手动安装 |
| xUnit | 2.9.2 | 测试框架NuGet 自动拉取 | | xUnit | 2.9.2 | 测试框架NuGet 自动拉取 |
| Git | 任意 | 拉取代码 | | Git | 任意 | 拉取代码 |