From 39ac80405870241822e6142b98616b17bd78b5ec Mon Sep 17 00:00:00 2001 From: Fatorin Date: Sat, 4 Apr 2026 14:41:35 +0800 Subject: [PATCH] Add .NET 10 support and drop EOL .NET 7 for CLI Update NuGetForUnity.Cli and its tests to target net8.0, net9.0, and net10.0, replacing the end-of-life net7.0. Also update the GitHub Actions workflow to install and test against .NET 10 SDK. --- .github/workflows/main.yml | 3 ++- src/NuGetForUnity.Cli.Tests/NuGetForUnity.Cli.Tests.csproj | 2 +- src/NuGetForUnity.Cli/NuGetForUnity.Cli.csproj | 2 +- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 5514aa44..6b1e6120 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -175,6 +175,7 @@ jobs: dotnet-version: | 8.0.x 9.0.x + 10.0.x - name: Build and pack .NET Core Global Tool run: >- @@ -297,9 +298,9 @@ jobs: uses: actions/setup-dotnet@v4 with: dotnet-version: | - 7.0.x 8.0.x 9.0.x + 10.0.x - name: Restore NuGet packages run: dotnet restore src/NuGetForUnity.Cli.Tests/NuGetForUnity.Cli.Tests.csproj diff --git a/src/NuGetForUnity.Cli.Tests/NuGetForUnity.Cli.Tests.csproj b/src/NuGetForUnity.Cli.Tests/NuGetForUnity.Cli.Tests.csproj index 43fa769f..0d6e7491 100644 --- a/src/NuGetForUnity.Cli.Tests/NuGetForUnity.Cli.Tests.csproj +++ b/src/NuGetForUnity.Cli.Tests/NuGetForUnity.Cli.Tests.csproj @@ -1,6 +1,6 @@ - net7.0;net8.0;net9.0 + net8.0;net9.0;net10.0 NuGetForUnity.Cli.Tests NuGetForUnity.Cli.Tests false diff --git a/src/NuGetForUnity.Cli/NuGetForUnity.Cli.csproj b/src/NuGetForUnity.Cli/NuGetForUnity.Cli.csproj index 1fd51c28..85f7ec7c 100644 --- a/src/NuGetForUnity.Cli/NuGetForUnity.Cli.csproj +++ b/src/NuGetForUnity.Cli/NuGetForUnity.Cli.csproj @@ -3,7 +3,7 @@ Exe NuGetForUnity.Cli NuGetForUnity.Cli - net7.0;net8.0;net9.0 + net8.0;net9.0;net10.0 AnyCPU true nugetforunity