From dacdb2f39ac795ae8e079dc2615c1199066ff719 Mon Sep 17 00:00:00 2001 From: porrey <12475115+porrey@users.noreply.github.com> Date: Tue, 24 Nov 2026 19:47:36 +0000 Subject: [PATCH] Update workflows for .NET 11 Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> --- .github/workflows/dotnet.yml | 6 +++--- ARCHITECTURE.md | 6 +++--- global.json | 5 +++++ 3 files changed, 11 insertions(+), 6 deletions(-) create mode 100644 global.json diff --git a/.github/workflows/dotnet.yml b/.github/workflows/dotnet.yml index 74c1a41..efc91cb 100644 --- a/.github/workflows/dotnet.yml +++ b/.github/workflows/dotnet.yml @@ -15,11 +15,11 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v5 + - uses: actions/checkout@v7.0.1 - name: Setup .NET - uses: actions/setup-dotnet@v5 + uses: actions/setup-dotnet@v6.1.0 with: - dotnet-version: 10.0.x + dotnet-version: 11.0.x - name: Restore dependencies run: dotnet restore working-directory: Src diff --git a/ARCHITECTURE.md b/ARCHITECTURE.md index b1f4eea..dd72e97 100644 --- a/ARCHITECTURE.md +++ b/ARCHITECTURE.md @@ -4,7 +4,7 @@ `System.DisposableObject` is a lightweight .NET class library that provides ready-to-use base classes implementing the [Dispose Pattern](https://docs.microsoft.com/en-us/dotnet/standard/garbage-collection/implementing-dispose) for both synchronous (`IDisposable`) and asynchronous (`IAsyncDisposable`) resource cleanup. Consuming code inherits from one of the two base classes and overrides hook methods rather than re-implementing the full dispose pattern from scratch. -The library is distributed as a NuGet package (`System.DisposableObject`) and targets **net10.0**. +The library is distributed as a NuGet package (`System.DisposableObject`) and targets **net11.0**. --- @@ -37,7 +37,7 @@ System.DisposableObject/ ← repository root | Technology | Role | |---|---| -| **C# / .NET 10** | Implementation language and target runtime | +| **C# / .NET 11** | Implementation language and target runtime | | **Visual Studio 2019+ solution format** | IDE project organisation (`Format Version 12.00`) | | **`IDisposable`** | Standard synchronous resource-cleanup interface | | **`IAsyncDisposable`** | Asynchronous resource-cleanup interface (C# 8 / .NET Core 3+) | @@ -114,7 +114,7 @@ Async call: await obj.DisposeAsync() ## Example Project (`System.DisposableObject.Example`) -A minimal console application (`net10.0`) that exercises both base classes: +A minimal console application (`net11.0`) that exercises both base classes: * **`SomeObject`** — inherits `DisposableObject`; overrides both hook methods. * **`SomeAsyncObject`** — inherits `AsyncDisposableObject`; overrides both hook methods. diff --git a/global.json b/global.json new file mode 100644 index 0000000..3140116 --- /dev/null +++ b/global.json @@ -0,0 +1,5 @@ +{ + "test": { + "runner": "Microsoft.Testing.Platform" + } +}