From 379200c52366fb5b86d392212c657d22027a0f49 Mon Sep 17 00:00:00 2001 From: Adrian Ferrera Date: Wed, 17 Jun 2026 12:51:56 +0100 Subject: [PATCH] chore: modernize to .NET 9, xUnit 2.9, FluentAssertions 8 --- Kata.Unit.Tests/Kata.Unit.Tests.csproj | 12 ++++++------ Kata/Dockerfile | 4 ++-- Kata/Kata.csproj | 2 +- README.md | 4 ++-- 4 files changed, 11 insertions(+), 11 deletions(-) diff --git a/Kata.Unit.Tests/Kata.Unit.Tests.csproj b/Kata.Unit.Tests/Kata.Unit.Tests.csproj index 164cc45..44b2dee 100644 --- a/Kata.Unit.Tests/Kata.Unit.Tests.csproj +++ b/Kata.Unit.Tests/Kata.Unit.Tests.csproj @@ -1,7 +1,7 @@ - net7.0 + net9.0 enable enable @@ -10,14 +10,14 @@ - - - - + + + + runtime; build; native; contentfiles; analyzers; buildtransitive all - + runtime; build; native; contentfiles; analyzers; buildtransitive all diff --git a/Kata/Dockerfile b/Kata/Dockerfile index dc78c47..991fd3d 100644 --- a/Kata/Dockerfile +++ b/Kata/Dockerfile @@ -1,7 +1,7 @@ -FROM mcr.microsoft.com/dotnet/runtime:7.0 AS base +FROM mcr.microsoft.com/dotnet/runtime:9.0 AS base WORKDIR /app -FROM mcr.microsoft.com/dotnet/sdk:7.0 AS build +FROM mcr.microsoft.com/dotnet/sdk:9.0 AS build WORKDIR /src COPY ["Kata/Kata.csproj", "Kata/"] RUN dotnet restore "Kata/Kata.csproj" diff --git a/Kata/Kata.csproj b/Kata/Kata.csproj index 2827d32..c1997bf 100644 --- a/Kata/Kata.csproj +++ b/Kata/Kata.csproj @@ -2,7 +2,7 @@ Exe - net7.0 + net9.0 enable enable Linux diff --git a/README.md b/README.md index f68318d..1bbf73c 100644 --- a/README.md +++ b/README.md @@ -6,7 +6,7 @@ This is a template repository for C# katas. It contains a basic project structur This boilerplate include: -- ➕ [.NET 7.0](https://docs.microsoft.com/en-us/dotnet/csharp/whats-new/csharp-7) as language version +- ➕ [.NET 9.0](https://docs.microsoft.com/en-us/dotnet/csharp/whats-new/csharp-7) as language version - 🧪 [xUnit](https://xunit.net/) as testing framework - ✅ [FluentAssertions](https://fluentassertions.com/) as assertion library - 🐋 [Docker](https://www.docker.com/) as containerization platform @@ -27,4 +27,4 @@ This boilerplate include: 3. Open the repository in Visual Studio Code 4. Run the tests with the Test Explorer 5. The tests should run and pass -6. You can also run the tests with the command `dotnet test` in the root directory of the repository \ No newline at end of file +6. You can also run the tests with the command `dotnet test` in the root directory of the repository