From d59ef6ebc508e99a899d38c67595e6efe45d686a Mon Sep 17 00:00:00 2001 From: Louis Zanella Date: Wed, 25 Jun 2025 09:03:40 -0400 Subject: [PATCH] Use .NET 9 SDK in CI --- .github/dependabot.yml | 4 ---- .github/workflows/ci.yml | 12 ++++++------ 2 files changed, 6 insertions(+), 10 deletions(-) diff --git a/.github/dependabot.yml b/.github/dependabot.yml index 33889c58..1557bc66 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -25,10 +25,6 @@ updates: - dependency-name: "Microsoft.AspNetCore.WebUtilities" - dependency-name: "Microsoft.Bcl.AsyncInterfaces" - dependency-name: "System.Text.Json" - # The following should not be bumped until we use .NET 9+, otherwise we'll get - # error CS8032: Could not load file or assembly 'System.Collections.Immutable, Version=9.0.0.0 - - dependency-name: "Microsoft.CodeAnalysis.BannedApiAnalyzers" - - dependency-name: "Microsoft.CodeAnalysis.PublicApiAnalyzers" # LibGit2Sharp 0.31.0+ no longer targets net6.0 - dependency-name: "LibGit2Sharp" rebase-strategy: auto diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 2fcbfafe..bfa2d4d1 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -30,10 +30,10 @@ jobs: uses: actions/checkout@v4 with: fetch-depth: 0 # Get all the history so MinGit can compute the version - - name: Set up latest .NET 8.0 + - name: Set up latest .NET 9.0 uses: actions/setup-dotnet@v4 with: - dotnet-version: "8.0.x" + dotnet-version: "9.0.x" - run: dotnet pack NGitLab.sln --configuration Release --output ${{env.NuGetDirectory}} /bl - uses: actions/upload-artifact@v4 with: @@ -73,10 +73,10 @@ jobs: steps: - name: Check out code uses: actions/checkout@v4 - - name: Set up latest .NET 8.0 + - name: Set up latest .NET 9.0 uses: actions/setup-dotnet@v4 with: - dotnet-version: "8.0.x" + dotnet-version: "9.0.x" - name: Set artifact name id: set-artifact-name run: | @@ -112,10 +112,10 @@ jobs: with: name: nuget path: ${{env.NuGetDirectory}} - - name: Set up latest .NET 8.0 + - name: Set up latest .NET 9.0 uses: actions/setup-dotnet@v4 with: - dotnet-version: "8.0.x" + dotnet-version: "9.0.x" - name: Publish NuGet packages run: | Write-Host "Current ref: $env:GITHUB_REF"