From 43016b3d0efb78980aae4eb870c3150c0bd7ebe0 Mon Sep 17 00:00:00 2001 From: Jesse Kela Date: Wed, 2 Oct 2024 22:44:01 +0300 Subject: [PATCH] Upgrade to .NET 9 --- .github/workflows/test.yml | 2 +- App/Directory.Packages.props | 2 +- Directory.Build.props | 2 +- Dockerfile | 4 ++-- README.md | 3 ++- Tests/Directory.Packages.props | 2 +- 6 files changed, 8 insertions(+), 7 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 0014732..a1ee88d 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -15,7 +15,7 @@ jobs: strategy: matrix: os: ["ubuntu-latest", "windows-latest"] - dotnet: ["8.0.x"] + dotnet: ["9.0.x"] steps: - uses: actions/checkout@v4 - name: Setup .NET ${{ matrix.dotnet }} diff --git a/App/Directory.Packages.props b/App/Directory.Packages.props index 06980b3..64b747a 100644 --- a/App/Directory.Packages.props +++ b/App/Directory.Packages.props @@ -5,7 +5,7 @@ - + diff --git a/Directory.Build.props b/Directory.Build.props index bb61669..fc5a804 100644 --- a/Directory.Build.props +++ b/Directory.Build.props @@ -1,6 +1,6 @@ - net8.0 + net9.0 enable latest enable diff --git a/Dockerfile b/Dockerfile index 0698029..4279e59 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -FROM mcr.microsoft.com/dotnet/sdk:8.0-alpine AS build +FROM mcr.microsoft.com/dotnet/sdk:9.0-alpine AS build WORKDIR /app @@ -9,7 +9,7 @@ RUN dotnet restore ./Api/Api.csproj RUN dotnet publish ./Api/Api.csproj -c Release -o /app/publish -FROM mcr.microsoft.com/dotnet/aspnet:8.0-alpine +FROM mcr.microsoft.com/dotnet/aspnet:9.0-alpine COPY --from=build /app/publish . diff --git a/README.md b/README.md index cc11a9b..9d34c3c 100644 --- a/README.md +++ b/README.md @@ -20,5 +20,6 @@ Endpoints: - /buyandsell Tools used: -- .NET SDK + +- .NET 9 SDK - Docker diff --git a/Tests/Directory.Packages.props b/Tests/Directory.Packages.props index 4767c96..06b16b6 100644 --- a/Tests/Directory.Packages.props +++ b/Tests/Directory.Packages.props @@ -4,7 +4,7 @@ - +