Update to .NET 10

This commit is contained in:
Sven van Heugten 2026-01-23 20:07:03 +01:00
parent 59a1b1e41d
commit 90fe37eacc
5 changed files with 9 additions and 9 deletions

View file

@ -2,7 +2,7 @@
<PropertyGroup> <PropertyGroup>
<OutputType>Exe</OutputType> <OutputType>Exe</OutputType>
<TargetFramework>net9.0</TargetFramework> <TargetFramework>net10.0</TargetFramework>
<TreatWarningsAsErrors>true</TreatWarningsAsErrors> <TreatWarningsAsErrors>true</TreatWarningsAsErrors>
</PropertyGroup> </PropertyGroup>

View file

@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk"> <Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup> <PropertyGroup>
<TargetFramework>net9.0</TargetFramework> <TargetFramework>net10.0</TargetFramework>
<TreatWarningsAsErrors>true</TreatWarningsAsErrors> <TreatWarningsAsErrors>true</TreatWarningsAsErrors>
</PropertyGroup> </PropertyGroup>

View file

@ -1,4 +1,4 @@
FROM mcr.microsoft.com/dotnet/sdk:9.0 AS build FROM mcr.microsoft.com/dotnet/sdk:10.0 AS build
WORKDIR /app WORKDIR /app
COPY NightLight.sln ./ COPY NightLight.sln ./
COPY NightLight.Core/NightLight.Core.fsproj NightLight.Core/ COPY NightLight.Core/NightLight.Core.fsproj NightLight.Core/
@ -7,7 +7,7 @@ RUN dotnet restore NightLight/NightLight.fsproj
COPY . ./ COPY . ./
RUN dotnet publish NightLight/NightLight.fsproj --no-restore -c Release -o out RUN dotnet publish NightLight/NightLight.fsproj --no-restore -c Release -o out
FROM mcr.microsoft.com/dotnet/runtime:9.0 FROM mcr.microsoft.com/dotnet/runtime:10.0
WORKDIR /app WORKDIR /app
COPY --from=build /app/out . COPY --from=build /app/out .
ENTRYPOINT ["dotnet", "NightLight.dll"] ENTRYPOINT ["dotnet", "NightLight.dll"]

View file

@ -2,7 +2,7 @@
<PropertyGroup> <PropertyGroup>
<OutputType>Exe</OutputType> <OutputType>Exe</OutputType>
<TargetFramework>net9.0</TargetFramework> <TargetFramework>net10.0</TargetFramework>
<TreatWarningsAsErrors>true</TreatWarningsAsErrors> <TreatWarningsAsErrors>true</TreatWarningsAsErrors>
</PropertyGroup> </PropertyGroup>

View file

@ -1,7 +1,7 @@
{ {
buildDotnetModule, buildDotnetModule,
dotnet-sdk_9, dotnet-sdk_10,
dotnet-runtime_9, dotnet-runtime_10,
}: }:
buildDotnetModule rec { buildDotnetModule rec {
@ -13,8 +13,8 @@ buildDotnetModule rec {
projectFile = "NightLight/NightLight.fsproj"; projectFile = "NightLight/NightLight.fsproj";
nugetDeps = ./deps.json; nugetDeps = ./deps.json;
dotnet-sdk = dotnet-sdk_9; dotnet-sdk = dotnet-sdk_10;
dotnet-runtime = dotnet-runtime_9; dotnet-runtime = dotnet-runtime_10;
executables = [ "NightLight" ]; executables = [ "NightLight" ];
} }