From 34ad695a2d29ab83576445d42ca4add5913735ac Mon Sep 17 00:00:00 2001 From: Eddasol Date: Thu, 16 Jan 2025 10:46:09 +0100 Subject: [PATCH] Update to dotnet9 --- .github/workflows/backend_lint_and_test.yml | 6 +++--- .github/workflows/runMigrations.yml | 4 ++-- backend/.config/dotnet-tools.json | 2 +- backend/Dockerfile | 4 ++-- backend/api.test/api.test.csproj | 4 ++-- backend/api/api.csproj | 12 ++++++------ 6 files changed, 16 insertions(+), 16 deletions(-) diff --git a/.github/workflows/backend_lint_and_test.yml b/.github/workflows/backend_lint_and_test.yml index 969d245fd..701000206 100644 --- a/.github/workflows/backend_lint_and_test.yml +++ b/.github/workflows/backend_lint_and_test.yml @@ -22,7 +22,7 @@ jobs: - name: Set up .NET uses: actions/setup-dotnet@v4 with: - dotnet-version: "8.0.x" + dotnet-version: "9.0.x" - name: Build project and dependencies run: dotnet build @@ -35,7 +35,7 @@ jobs: - name: Set up .NET uses: actions/setup-dotnet@v4 with: - dotnet-version: "8.0.x" + dotnet-version: "9.0.x" - name: Build project and dependencies run: dotnet build -warnaserror @@ -51,7 +51,7 @@ jobs: - name: Setup .NET Core uses: actions/setup-dotnet@v4 with: - dotnet-version: "8.0.x" + dotnet-version: "9.0.x" - name: Run csharpier format run: | diff --git a/.github/workflows/runMigrations.yml b/.github/workflows/runMigrations.yml index 079850952..c36de611a 100644 --- a/.github/workflows/runMigrations.yml +++ b/.github/workflows/runMigrations.yml @@ -45,13 +45,13 @@ jobs: - name: Set up .NET uses: actions/setup-dotnet@v4 with: - dotnet-version: "8.0.x" + dotnet-version: "9.0.x" - name: Build project and dependencies run: dotnet build - name: Install dotnet ef tool - run: dotnet tool install -g dotnet-ef --version 8.0.0 + run: dotnet tool install -g dotnet-ef --version 9.0.0 - name: Update database run: dotnet ef database update --no-build --verbose diff --git a/backend/.config/dotnet-tools.json b/backend/.config/dotnet-tools.json index c8a1c60aa..3c40b6da3 100644 --- a/backend/.config/dotnet-tools.json +++ b/backend/.config/dotnet-tools.json @@ -3,7 +3,7 @@ "isRoot": true, "tools": { "csharpier": { - "version": "0.29.2", + "version": "0.30.6", "commands": [ "dotnet-csharpier" ] diff --git a/backend/Dockerfile b/backend/Dockerfile index 71c1c55c1..5c0a96af4 100644 --- a/backend/Dockerfile +++ b/backend/Dockerfile @@ -1,5 +1,5 @@ # https://hub.docker.com/_/microsoft-dotnet -FROM mcr.microsoft.com/dotnet/sdk:8.0 AS build +FROM mcr.microsoft.com/dotnet/sdk:9.0 AS build WORKDIR /source # copy everything @@ -9,7 +9,7 @@ WORKDIR /source/api RUN dotnet publish -c release -o /app # final stage/image -FROM mcr.microsoft.com/dotnet/aspnet:8.0 +FROM mcr.microsoft.com/dotnet/aspnet:9.0 WORKDIR /app COPY --from=build /app ./ RUN apt-get update && apt-get install -y apt-utils libgdiplus libc6-dev diff --git a/backend/api.test/api.test.csproj b/backend/api.test/api.test.csproj index 58647026a..a20bb78c6 100644 --- a/backend/api.test/api.test.csproj +++ b/backend/api.test/api.test.csproj @@ -1,7 +1,7 @@ - net8.0 + net9.0 enable false @@ -11,7 +11,7 @@ - + diff --git a/backend/api/api.csproj b/backend/api/api.csproj index ce196cc33..fed926d3a 100644 --- a/backend/api/api.csproj +++ b/backend/api/api.csproj @@ -1,7 +1,7 @@  - net8.0 + net9.0 enable enable f888e68d-d6f9-4dad-adb2-269ae53a9ea1 @@ -16,15 +16,15 @@ - - + + all runtime; build; native; contentfiles; analyzers - - - + + +