From 8db28f554c7d53e442d84b21e38845b238280da1 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: Fri, 21 Nov 2025 17:34:22 -0500 Subject: [PATCH] chore: update to .net 10 --- .github/workflows/codeql.yml | 6 +++--- Dockerfile | 4 ++-- .../Nullinside.Api.TwitchBot.Tests.csproj | 10 +++++----- .../Nullinside.Api.TwitchBot.csproj | 11 +++++------ src/Nullinside.Api.TwitchBot/Program.cs | 17 +---------------- src/nullinside-api | 2 +- 6 files changed, 17 insertions(+), 33 deletions(-) diff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.yml index ed4c67e..eafb2fa 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: 9.x.x + dotnet-version: 10.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: 9.x.x + dotnet-version: 10.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: 9.x.x + dotnet-version: 10.x.x # Execute the build - name: Execute Build diff --git a/Dockerfile b/Dockerfile index 784e3df..05ad00c 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,10 +1,10 @@ -FROM mcr.microsoft.com/dotnet/aspnet:9.0 AS base +FROM mcr.microsoft.com/dotnet/aspnet:10.0 AS base USER $APP_UID WORKDIR /app EXPOSE 8080 EXPOSE 8081 -FROM mcr.microsoft.com/dotnet/sdk:9.0 AS build +FROM mcr.microsoft.com/dotnet/sdk:10.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 da224a1..c06462c 100644 --- a/src/Nullinside.Api.TwitchBot.Tests/Nullinside.Api.TwitchBot.Tests.csproj +++ b/src/Nullinside.Api.TwitchBot.Tests/Nullinside.Api.TwitchBot.Tests.csproj @@ -1,7 +1,7 @@ - net9.0 + net10.0 enable enable @@ -15,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 6267335..9c663d0 100644 --- a/src/Nullinside.Api.TwitchBot/Nullinside.Api.TwitchBot.csproj +++ b/src/Nullinside.Api.TwitchBot/Nullinside.Api.TwitchBot.csproj @@ -1,7 +1,7 @@  - net9.0 + net10.0 enable enable Linux @@ -22,17 +22,16 @@ - + - - + + all runtime; build; native; contentfiles; analyzers; buildtransitive - - + diff --git a/src/Nullinside.Api.TwitchBot/Program.cs b/src/Nullinside.Api.TwitchBot/Program.cs index e836e57..a40d89a 100644 --- a/src/Nullinside.Api.TwitchBot/Program.cs +++ b/src/Nullinside.Api.TwitchBot/Program.cs @@ -3,7 +3,7 @@ using Microsoft.AspNetCore.Authentication; using Microsoft.AspNetCore.Authorization; using Microsoft.EntityFrameworkCore; -using Microsoft.OpenApi.Models; +using Microsoft.OpenApi; using Nullinside.Api.Common; using Nullinside.Api.Common.AspNetCore.Middleware; @@ -66,21 +66,6 @@ Scheme = "Bearer" }); - c.AddSecurityRequirement(new OpenApiSecurityRequirement { - { - new OpenApiSecurityScheme { - Reference = new OpenApiReference { - Type = ReferenceType.SecurityScheme, - Id = "Bearer" - }, - Scheme = "oauth2", - Name = "Bearer", - In = ParameterLocation.Header - }, - new List() - } - }); - string xmlFile = $"{Assembly.GetExecutingAssembly().GetName().Name}.xml"; string xmlPath = Path.Combine(AppContext.BaseDirectory, xmlFile); c.IncludeXmlComments(xmlPath); diff --git a/src/nullinside-api b/src/nullinside-api index a2f0bc0..9cd22aa 160000 --- a/src/nullinside-api +++ b/src/nullinside-api @@ -1 +1 @@ -Subproject commit a2f0bc037a85fd17897281578e378e36a5be8604 +Subproject commit 9cd22aa0c8af1f84b862b7cabd72eaacaeea0f31