From 06f40bea96b97537390b2dba760d87d6cf32e285 Mon Sep 17 00:00:00 2001 From: Erik Schierboom Date: Tue, 31 Dec 2024 09:05:30 +0100 Subject: [PATCH] Upgrade to .NET 9 --- Dockerfile | 4 ++-- .../Exercism.Analyzers.CSharp.csproj | 4 ++-- tests/gigasecond/add/expected_tags.json | 4 ++-- tests/gigasecond/approaches/time-span/expected_tags.json | 4 ++-- tests/gigasecond/plus-operator/expected_tags.json | 4 ++-- 5 files changed, 10 insertions(+), 10 deletions(-) diff --git a/Dockerfile b/Dockerfile index 96b34be5..d7194939 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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 layer @@ -10,7 +10,7 @@ COPY src/Exercism.Analyzers.CSharp . RUN dotnet publish -r linux-musl-x64 -c Release --self-contained true -o /opt/analyzer # 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/analyzer COPY --from=build /opt/analyzer/ . diff --git a/src/Exercism.Analyzers.CSharp/Exercism.Analyzers.CSharp.csproj b/src/Exercism.Analyzers.CSharp/Exercism.Analyzers.CSharp.csproj index 839c2601..3b2ea86d 100644 --- a/src/Exercism.Analyzers.CSharp/Exercism.Analyzers.CSharp.csproj +++ b/src/Exercism.Analyzers.CSharp/Exercism.Analyzers.CSharp.csproj @@ -1,13 +1,13 @@ - net7.0 + net9.0 Exe true - + diff --git a/tests/gigasecond/add/expected_tags.json b/tests/gigasecond/add/expected_tags.json index 1248e16b..b8fdb89c 100644 --- a/tests/gigasecond/add/expected_tags.json +++ b/tests/gigasecond/add/expected_tags.json @@ -2,11 +2,11 @@ "tags": [ "construct:class", "construct:date-time", - "construct:double", - "construct:floating-point-number", "construct:implicit-conversion", + "construct:integral-number", "construct:invocation", "construct:lambda", + "construct:long", "construct:method", "construct:number", "construct:parameter", diff --git a/tests/gigasecond/approaches/time-span/expected_tags.json b/tests/gigasecond/approaches/time-span/expected_tags.json index f0e4e985..be8429c0 100644 --- a/tests/gigasecond/approaches/time-span/expected_tags.json +++ b/tests/gigasecond/approaches/time-span/expected_tags.json @@ -2,10 +2,10 @@ "tags": [ "construct:add", "construct:class", - "construct:double", - "construct:floating-point-number", "construct:implicit-conversion", + "construct:integral-number", "construct:invocation", + "construct:long", "construct:method", "construct:number", "construct:parameter", diff --git a/tests/gigasecond/plus-operator/expected_tags.json b/tests/gigasecond/plus-operator/expected_tags.json index 39c5c6a4..2cd57d68 100644 --- a/tests/gigasecond/plus-operator/expected_tags.json +++ b/tests/gigasecond/plus-operator/expected_tags.json @@ -2,10 +2,10 @@ "tags": [ "construct:add", "construct:class", - "construct:double", - "construct:floating-point-number", "construct:implicit-conversion", + "construct:integral-number", "construct:invocation", + "construct:long", "construct:method", "construct:number", "construct:parameter",