Compare commits

...

3 Commits

Author SHA1 Message Date
Robert Paciorek
56f66dd51c update dotnet version in Dockerfile
(and remove unused docer config from sodoffmmo.csproj)
2025-06-27 22:38:23 +02:00
Spirtix
6bcd985011 update dependencies 2025-06-27 22:38:23 +02:00
Spirtix
d09aaf502b switch to .net 9 2025-06-27 22:38:23 +02:00
2 changed files with 5 additions and 8 deletions

View File

@ -1,5 +1,5 @@
# Use the official .NET SDK image for building the application
FROM mcr.microsoft.com/dotnet/sdk:6.0 AS build
FROM mcr.microsoft.com/dotnet/sdk:9.0 AS build
WORKDIR /src
# Copy the source code
@ -9,7 +9,7 @@ COPY . .
RUN dotnet build -c Release -o /app
# Create clean run environment (without source and sdk)
# FROM mcr.microsoft.com/dotnet/runtime:6.0 AS base
# FROM mcr.microsoft.com/dotnet/runtime:9.0 AS base
# WORKDIR /app
# COPY --from=build /app .

View File

@ -2,18 +2,15 @@
<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>net6.0</TargetFramework>
<TargetFramework>net9.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
<DockerDefaultTargetOS>Linux</DockerDefaultTargetOS>
<DockerfileRunArguments>-p 9933:9933</DockerfileRunArguments>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="ComponentAce.Compression.Libs.zlib" Version="1.0.4" />
<PackageReference Include="Microsoft.Extensions.Configuration.Binder" Version="8.0.1" />
<PackageReference Include="Microsoft.Extensions.Configuration.Json" Version="8.0.0" />
<PackageReference Include="Microsoft.VisualStudio.Azure.Containers.Tools.Targets" Version="1.19.4" />
<PackageReference Include="Microsoft.Extensions.Configuration.Binder" Version="9.0.6" />
<PackageReference Include="Microsoft.Extensions.Configuration.Json" Version="9.0.6" />
</ItemGroup>
<ItemGroup>