Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions .github/workflows/dotnet.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
6 changes: 3 additions & 3 deletions ARCHITECTURE.md
Original file line number Diff line number Diff line change
Expand Up @@ -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**.

---

Expand Down Expand Up @@ -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+) |
Expand Down Expand Up @@ -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.
Expand Down
5 changes: 5 additions & 0 deletions global.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"test": {
"runner": "Microsoft.Testing.Platform"
}
}
Loading