Skip to content

Commit 4568cd8

Browse files
committed
build: 将项目目标框架从 net10.0 调整为支持 net10.0 和 net8.0
将单目标框架 `TargetFramework` 更改为多目标框架 `TargetFrameworks`,以同时支持 .NET 10.0 和 .NET 8.0,提升项目兼容性。
1 parent 6115b05 commit 4568cd8

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Directory.Build.props

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<Project>
22
<PropertyGroup>
33
<!-- 支持多目标框架: .NET 8 -->
4-
<TargetFramework>net10.0</TargetFramework>
4+
<TargetFrameworks>net10.0;net8.0</TargetFrameworks>
55
<!-- 禁用特定于版本或特定于发行版的运行时标识符警告 -->
66
<SuppressTfmSupportBuildWarnings>true</SuppressTfmSupportBuildWarnings>
77
<!-- 或者使用更具体的警告抑制 -->

0 commit comments

Comments
 (0)