From 99097554b9187e08d199d3abbb0b2bf8b6b2b969 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E8=90=BD=E7=AC=94wys?=
<46271592+Skymly@users.noreply.github.com>
Date: Sat, 18 Jul 2026 17:33:27 +0800
Subject: [PATCH] Align Nuke build with .NET 10
---
.github/workflows/ci.yml | 8 ++++----
.github/workflows/release.yml | 2 +-
Directory.Packages.props | 4 +++-
build/_build.csproj | 35 +++++++++++++++++++----------------
global.json | 2 +-
5 files changed, 28 insertions(+), 23 deletions(-)
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index 5458a70..ae5265c 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -26,7 +26,7 @@ jobs:
- name: Setup .NET SDK
uses: actions/setup-dotnet@v4
with:
- dotnet-version: 8.0.x
+ dotnet-version: 10.0.x
- name: Cache NuGet packages
uses: actions/cache@v4
@@ -72,7 +72,7 @@ jobs:
- name: Setup .NET SDK
uses: actions/setup-dotnet@v4
with:
- dotnet-version: 8.0.x
+ dotnet-version: 10.0.x
- name: Cache NuGet packages
uses: actions/cache@v4
@@ -95,7 +95,7 @@ jobs:
- name: Setup .NET SDK
uses: actions/setup-dotnet@v4
with:
- dotnet-version: 8.0.x
+ dotnet-version: 10.0.x
- name: Cache NuGet packages
uses: actions/cache@v4
@@ -125,7 +125,7 @@ jobs:
- name: Setup .NET SDK
uses: actions/setup-dotnet@v4
with:
- dotnet-version: 8.0.x
+ dotnet-version: 10.0.x
- name: Cache NuGet packages
uses: actions/cache@v4
diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml
index a3d7325..c98fe74 100644
--- a/.github/workflows/release.yml
+++ b/.github/workflows/release.yml
@@ -28,7 +28,7 @@ jobs:
- name: Setup .NET SDK
uses: actions/setup-dotnet@v4
with:
- dotnet-version: 8.0.x
+ dotnet-version: 10.0.x
- name: Resolve version
shell: bash
diff --git a/Directory.Packages.props b/Directory.Packages.props
index 165d476..7bc8518 100644
--- a/Directory.Packages.props
+++ b/Directory.Packages.props
@@ -9,9 +9,11 @@
-
+
+
+
diff --git a/build/_build.csproj b/build/_build.csproj
index f372447..c34478f 100644
--- a/build/_build.csproj
+++ b/build/_build.csproj
@@ -1,16 +1,19 @@
-
-
-
- Exe
- net8.0
- enable
- enable
- 1
- false
-
-
-
-
-
-
-
+
+
+
+ Exe
+ net10.0
+ enable
+ enable
+ 1
+ false
+
+
+
+
+
+
+
+
+
+
diff --git a/global.json b/global.json
index 67394de..44fbb79 100644
--- a/global.json
+++ b/global.json
@@ -1,6 +1,6 @@
{
"sdk": {
- "version": "8.0.421",
+ "version": "10.0.301",
"rollForward": "latestMajor",
"allowPrerelease": false
}