From ad11deb17a22cc09dcf88456e491311bcf5ed28d Mon Sep 17 00:00:00 2001 From: Blank Date: Thu, 6 Aug 2026 01:14:55 +0800 Subject: [PATCH] =?UTF-8?q?build(dotnet):=20=E5=8D=87=E7=BA=A7=E6=9E=84?= =?UTF-8?q?=E5=BB=BA=E7=9B=AE=E6=A0=87=E8=87=B3=20.NET=2010=20=E5=B9=B6?= =?UTF-8?q?=E5=90=8C=E6=AD=A5=20global.json=20=E4=B8=8E=E5=8F=91=E5=B8=83?= =?UTF-8?q?=20CI?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 同步上游 commit 84bace04 (net10 #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 --- .github/workflows/publish-nuget.yml | 4 ++-- Directory.Build.props | 2 +- global.json | 6 ++++++ 3 files changed, 9 insertions(+), 3 deletions(-) create mode 100644 global.json diff --git a/.github/workflows/publish-nuget.yml b/.github/workflows/publish-nuget.yml index f54d08c53..95f2f981c 100644 --- a/.github/workflows/publish-nuget.yml +++ b/.github/workflows/publish-nuget.yml @@ -12,9 +12,9 @@ jobs: steps: - uses: actions/checkout@v2 - name: Setup .NET Core - uses: actions/setup-dotnet@v1 + uses: actions/setup-dotnet@v4 with: - dotnet-version: 8.0.x + dotnet-version: 10.0.x - name: Install dotnet tool run: dotnet tool install -g dotnetCampus.TagToVersion diff --git a/Directory.Build.props b/Directory.Build.props index 53e27aa4e..c93e85ef7 100644 --- a/Directory.Build.props +++ b/Directory.Build.props @@ -1,6 +1,6 @@ - net8.0 + net10.0 10.0 enable disable diff --git a/global.json b/global.json new file mode 100644 index 000000000..ade345013 --- /dev/null +++ b/global.json @@ -0,0 +1,6 @@ +{ + "sdk": { + "version": "10.0.0", + "rollForward": "latestFeature" + } +}