From 74d663cae6354f3a8ae21605213626608150a541 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jakub=20Fija=C5=82kowski?= Date: Wed, 4 Dec 2024 10:50:12 +0100 Subject: [PATCH] Upgrade to .NET 9 --- .github/workflows/build_publish.yml | 4 +-- backend/Directory.Build.props | 2 +- backend/Directory.Build.targets | 27 +++++++++---------- .../App/Startup.cs | 2 +- backend/tests/Tests.csproj | 1 - 5 files changed, 17 insertions(+), 19 deletions(-) diff --git a/.github/workflows/build_publish.yml b/.github/workflows/build_publish.yml index dfe5f9c..4bce8b9 100644 --- a/.github/workflows/build_publish.yml +++ b/.github/workflows/build_publish.yml @@ -34,7 +34,7 @@ jobs: ports: - "5432:5432" env: - DOTNET_VERSION: 8.0 + DOTNET_VERSION: 9.0 DOTNET_SKIP_FIRST_TIME_EXPERIENCE: 1 DOTNET_CLI_TELEMETRY_OPTOUT: 1 steps: @@ -47,7 +47,7 @@ jobs: if [[ $BRANCH == "main" ]] then BUILD_NUMBER=$GITHUB_RUN_NUMBER - VERSION="1.0.${BUILD_NUMBER}" + VERSION="2.0.${BUILD_NUMBER}" PUBLISH_ARTIFACTS=1 else VERSION="0.0.0" diff --git a/backend/Directory.Build.props b/backend/Directory.Build.props index 7c33e91..558c8f4 100644 --- a/backend/Directory.Build.props +++ b/backend/Directory.Build.props @@ -7,7 +7,7 @@ enable preview library - net8.0 + net9.0 portable true enable diff --git a/backend/Directory.Build.targets b/backend/Directory.Build.targets index d354516..c83ef81 100644 --- a/backend/Directory.Build.targets +++ b/backend/Directory.Build.targets @@ -1,11 +1,11 @@ - 8.0.2305-preview - 8.0.0 + 9.0.2542-preview + 9.0.0 - + @@ -19,26 +19,25 @@ - - + + - - + + - - + - - - - - + + + + + diff --git a/backend/tests/LeanCode.AppRating.IntegrationTests/App/Startup.cs b/backend/tests/LeanCode.AppRating.IntegrationTests/App/Startup.cs index bb5a0b8..070e4a7 100644 --- a/backend/tests/LeanCode.AppRating.IntegrationTests/App/Startup.cs +++ b/backend/tests/LeanCode.AppRating.IntegrationTests/App/Startup.cs @@ -70,7 +70,7 @@ protected override void ConfigureApp(IApplicationBuilder app) app.UseEndpoints(endpoints => { - endpoints.MapRemoteCqrs( + endpoints.MapRemoteCQRS( "/api", cqrs => { diff --git a/backend/tests/Tests.csproj b/backend/tests/Tests.csproj index 07a5af8..9b3e6bd 100644 --- a/backend/tests/Tests.csproj +++ b/backend/tests/Tests.csproj @@ -1,7 +1,6 @@ - net8.0 Tests