From d4f9f3ec8714d17a1484347f718ff4f5b61566e9 Mon Sep 17 00:00:00 2001 From: Sebastian Date: Fri, 28 Nov 2025 16:06:27 +0100 Subject: [PATCH] Update Nuget and .Net to version 10 --- Dockerfile | 4 ++-- Program.cs | 8 +++----- iGotify Notification Assist.csproj | 20 +++++++++----------- 3 files changed, 14 insertions(+), 18 deletions(-) diff --git a/Dockerfile b/Dockerfile index 523e1ee..be543c3 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,5 +1,5 @@ # See https://devblogs.microsoft.com/dotnet/improving-multiplatform-container-support/ -FROM mcr.microsoft.com/dotnet/aspnet:9.0 AS base +FROM mcr.microsoft.com/dotnet/aspnet:10.0 AS base WORKDIR /app EXPOSE 5047 EXPOSE 7221 @@ -7,7 +7,7 @@ EXPOSE 7221 # Install curl in the final runtime image RUN apt-get update && apt-get install -y curl && rm -rf /var/lib/apt/lists/* -FROM --platform=$BUILDPLATFORM mcr.microsoft.com/dotnet/sdk:9.0 AS build +FROM --platform=$BUILDPLATFORM mcr.microsoft.com/dotnet/sdk:10.0 AS build ARG TARGETARCH WORKDIR /src diff --git a/Program.cs b/Program.cs index 5834128..cb26fe0 100644 --- a/Program.cs +++ b/Program.cs @@ -1,7 +1,5 @@ using iGotify_Notification_Assist.Services; using Microsoft.AspNetCore.Http.Json; -using Microsoft.AspNetCore.Identity; -using Microsoft.OpenApi.Models; using Scalar.AspNetCore; using Environments = iGotify_Notification_Assist.Services.Environments; @@ -46,9 +44,9 @@ app.MapScalarApiReference(options => { options.WithTitle("iGotify Notification Assist API") - .WithModels(false) - .WithLayout(ScalarLayout.Classic) - .WithTheme(ScalarTheme.Moon) + .HideModels() + .WithClassicLayout() + .WithTheme(ScalarTheme.Default) .WithDefaultHttpClient(ScalarTarget.CSharp, ScalarClient.HttpClient); }); } diff --git a/iGotify Notification Assist.csproj b/iGotify Notification Assist.csproj index 3d98193..6e787d9 100644 --- a/iGotify Notification Assist.csproj +++ b/iGotify Notification Assist.csproj @@ -1,14 +1,14 @@ - net9.0 + net10.0 enable enable true iGotify_Notification_Assist - 1.5.0.3 - 1.5.0.3 - 1.5.0.1 + 1.5.1.0 + 1.5.1.0 + 1.5.1.0 default @@ -16,14 +16,12 @@ - - - - + + + + - - - +