Skip to content

Commit

Permalink
Upgrade to .NET 9 (#225)
Browse files Browse the repository at this point in the history
  • Loading branch information
ErikSchierboom authored Dec 31, 2024
1 parent 0cce5a4 commit 5dd5dcc
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM mcr.microsoft.com/dotnet/sdk:8.0.301-alpine3.18-amd64 AS build
FROM mcr.microsoft.com/dotnet/sdk:9.0-alpine3.20-amd64 AS build
WORKDIR /app

# Copy csproj and restore as distinct layers
Expand All @@ -10,7 +10,7 @@ COPY src/Exercism.Representers.CSharp/ ./
RUN dotnet publish -r linux-musl-x64 -c Release --self-contained true -o /opt/representer

# Build runtime image
FROM mcr.microsoft.com/dotnet/runtime-deps:8.0.6-alpine3.18-amd64 AS runtime
FROM mcr.microsoft.com/dotnet/runtime-deps:9.0-alpine3.20-amd64 AS runtime
WORKDIR /opt/representer

COPY --from=build /opt/representer/ .
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFramework>net7.0</TargetFramework>
<TargetFramework>net9.0</TargetFramework>
<OutputType>Exe</OutputType>
</PropertyGroup>

Expand All @@ -11,7 +11,7 @@

<ItemGroup>
<PackageReference Include="Humanizer.Core" Version="2.14.1" />
<PackageReference Include="Microsoft.CodeAnalysis.CSharp.Workspaces" Version="4.11.0" />
<PackageReference Include="Microsoft.CodeAnalysis.CSharp.Workspaces" Version="4.12.0" />
</ItemGroup>

</Project>

0 comments on commit 5dd5dcc

Please sign in to comment.