From 89e01cf654b7280727ec0abc79f3ec775393e141 Mon Sep 17 00:00:00 2001 From: Maxwell Weru Date: Mon, 18 Nov 2024 19:39:22 +0200 Subject: [PATCH] Target net9.0 where necessary We use net9 in workflows and add it as a target where there are optional dependencies --- .github/workflows/build.yml | 8 ++++---- Directory.Build.props | 2 +- generator/StaticDataGenerator.csproj | 2 +- .../Tingle.Extensions.EntityFrameworkCore.csproj | 7 ++++++- tests/Directory.Build.props | 2 +- .../Tingle.AspNetCore.Swagger.Tests.csproj | 2 +- 6 files changed, 14 insertions(+), 9 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index aa64b20..f3fe0c3 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -57,7 +57,7 @@ jobs: - name: Setup .NET SDK uses: actions/setup-dotnet@v4 with: - dotnet-version: 8.x + dotnet-version: 9.x - name: Install dependencies run: dotnet restore @@ -102,7 +102,7 @@ jobs: - name: Setup .NET SDK uses: actions/setup-dotnet@v4 with: - dotnet-version: '8.x' + dotnet-version: '9.x' source-url: "https://pkgs.dev.azure.com/tingle/_packaging/tingle/nuget/v3/index.json" env: NUGET_AUTH_TOKEN: ${{ secrets.PRIVATE_FEED_API_KEY }} @@ -128,7 +128,7 @@ jobs: - name: Setup .NET SDK uses: actions/setup-dotnet@v4 with: - dotnet-version: '8.x' + dotnet-version: '9.x' source-url: https://nuget.pkg.github.com/${{ github.repository_owner }}/index.json env: NUGET_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }} @@ -154,7 +154,7 @@ jobs: - name: Setup .NET SDK uses: actions/setup-dotnet@v4 with: - dotnet-version: 8.x + dotnet-version: 9.x source-url: https://api.nuget.org/v3/index.json env: NUGET_AUTH_TOKEN: ${{ secrets.NUGET_API_KEY }} diff --git a/Directory.Build.props b/Directory.Build.props index a0345e2..8fb26ca 100644 --- a/Directory.Build.props +++ b/Directory.Build.props @@ -2,7 +2,7 @@ - net8.0 + net9.0 latest enable enable diff --git a/generator/StaticDataGenerator.csproj b/generator/StaticDataGenerator.csproj index 5f6952a..7427678 100644 --- a/generator/StaticDataGenerator.csproj +++ b/generator/StaticDataGenerator.csproj @@ -1,7 +1,7 @@  - net8.0 + net9.0 Exe false diff --git a/src/Tingle.Extensions.EntityFrameworkCore/Tingle.Extensions.EntityFrameworkCore.csproj b/src/Tingle.Extensions.EntityFrameworkCore/Tingle.Extensions.EntityFrameworkCore.csproj index 3687c67..f520c63 100644 --- a/src/Tingle.Extensions.EntityFrameworkCore/Tingle.Extensions.EntityFrameworkCore.csproj +++ b/src/Tingle.Extensions.EntityFrameworkCore/Tingle.Extensions.EntityFrameworkCore.csproj @@ -2,7 +2,7 @@ Convenience functionality and extensions for working with EntityFrameworkCore - net7.0;net8.0 + net7.0;net8.0;net9.0 @@ -19,6 +19,11 @@ + + + + + diff --git a/tests/Directory.Build.props b/tests/Directory.Build.props index 1fb0e35..83a1c96 100644 --- a/tests/Directory.Build.props +++ b/tests/Directory.Build.props @@ -26,7 +26,7 @@ - + diff --git a/tests/Tingle.AspNetCore.Swagger.Tests/Tingle.AspNetCore.Swagger.Tests.csproj b/tests/Tingle.AspNetCore.Swagger.Tests/Tingle.AspNetCore.Swagger.Tests.csproj index dcf6c82..f00a126 100644 --- a/tests/Tingle.AspNetCore.Swagger.Tests/Tingle.AspNetCore.Swagger.Tests.csproj +++ b/tests/Tingle.AspNetCore.Swagger.Tests/Tingle.AspNetCore.Swagger.Tests.csproj @@ -1,7 +1,7 @@ - net8.0 + net9.0