From 1150ed6455d85c342d474b91fcef48b3b667e87e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=E2=96=88=E2=96=88=E2=96=88=E2=96=88=E2=96=88?= Date: Mon, 28 Apr 2025 17:42:41 -0400 Subject: [PATCH] feat: Upgrading to .NET 9.0 --- .github/workflows/codeql.yml | 6 +++--- Dockerfile | 4 ++-- .../Nullinside.Api.TwitchBot.Tests.csproj | 9 +++++---- .../Nullinside.Api.TwitchBot.csproj | 13 +++++++------ src/nullinside-api | 2 +- 5 files changed, 18 insertions(+), 16 deletions(-) diff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.yml index 0d41bfe..ed4c67e 100644 --- a/.github/workflows/codeql.yml +++ b/.github/workflows/codeql.yml @@ -36,7 +36,7 @@ jobs: - name: Install .NET Core uses: actions/setup-dotnet@v3 with: - dotnet-version: 8.x.x + dotnet-version: 9.x.x # Execute the build - name: Execute Release Build @@ -58,7 +58,7 @@ jobs: - name: Install .NET Core uses: actions/setup-dotnet@v3 with: - dotnet-version: 8.x.x + dotnet-version: 9.x.x # Execute the tests - name: Execute Tests @@ -119,7 +119,7 @@ jobs: - name: Install .NET Core uses: actions/setup-dotnet@v3 with: - dotnet-version: 8.x.x + dotnet-version: 9.x.x # Execute the build - name: Execute Build diff --git a/Dockerfile b/Dockerfile index 6b3b7a2..784e3df 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,10 +1,10 @@ -FROM mcr.microsoft.com/dotnet/aspnet:8.0 AS base +FROM mcr.microsoft.com/dotnet/aspnet:9.0 AS base USER $APP_UID WORKDIR /app EXPOSE 8080 EXPOSE 8081 -FROM mcr.microsoft.com/dotnet/sdk:8.0 AS build +FROM mcr.microsoft.com/dotnet/sdk:9.0 AS build ARG BUILD_CONFIGURATION=Release WORKDIR /src COPY ["src/Nullinside.Api.TwitchBot/Nullinside.Api.TwitchBot.csproj", "src/Nullinside.Api.TwitchBot/"] diff --git a/src/Nullinside.Api.TwitchBot.Tests/Nullinside.Api.TwitchBot.Tests.csproj b/src/Nullinside.Api.TwitchBot.Tests/Nullinside.Api.TwitchBot.Tests.csproj index 1015335..bb25072 100644 --- a/src/Nullinside.Api.TwitchBot.Tests/Nullinside.Api.TwitchBot.Tests.csproj +++ b/src/Nullinside.Api.TwitchBot.Tests/Nullinside.Api.TwitchBot.Tests.csproj @@ -1,12 +1,13 @@ - net8.0 + net9.0 enable enable false true + default @@ -14,12 +15,12 @@ all runtime; build; native; contentfiles; analyzers; buildtransitive - - + + - + all runtime; build; native; contentfiles; analyzers; buildtransitive diff --git a/src/Nullinside.Api.TwitchBot/Nullinside.Api.TwitchBot.csproj b/src/Nullinside.Api.TwitchBot/Nullinside.Api.TwitchBot.csproj index 36dc990..d0d8f06 100644 --- a/src/Nullinside.Api.TwitchBot/Nullinside.Api.TwitchBot.csproj +++ b/src/Nullinside.Api.TwitchBot/Nullinside.Api.TwitchBot.csproj @@ -1,10 +1,11 @@  - net8.0 + net9.0 enable enable Linux + default @@ -21,16 +22,16 @@ - + - - + + all runtime; build; native; contentfiles; analyzers; buildtransitive - - + + diff --git a/src/nullinside-api b/src/nullinside-api index 9365981..7407036 160000 --- a/src/nullinside-api +++ b/src/nullinside-api @@ -1 +1 @@ -Subproject commit 9365981e29923ed413282c1259fd4eca8e56f0d0 +Subproject commit 74070360e8f702214808115f176449a99d2ac0ec