Skip to content

Update to .NET 10 LTS and bump dependencies - #3

Merged
rumkit merged 3 commits into
masterfrom
dotnet10
Nov 9, 2026
Merged

rumkit merged 3 commits into
masterfrom
dotnet10

Conversation

@rumkit

@rumkit rumkit commented Nov 9, 2026 •

Copy link
Copy Markdown
Owner

Moves the bot from .NET 9 (end of support around November 2026) to .NET 10 LTS and bumps the dependencies.

Changes

What From To
Target framework (app and tests) net9.0 net10.0
Docker images sdk:9.0 / aspnet:9.0 sdk:10.0 / aspnet:10.0
MinimalTelegramBot 0.0.40 0.1.0
Scrutor 6.1.0 7.0.0
TUnit 0.24.0 1.81.10
CI .NET 9 SDK, checkout/setup-dotnet v4 .NET 10 SDK, v5

CI now also runs build and tests on pull requests. Image publishing still only happens on pushes to master, so this PR doesn't touch latest.

Follow-up fixes in this PR

  • Tests ported to TUnit 1.x: the old ValueAssertCondition custom assertions are replaced by one Assertion<IResult> subclass with the same IsMessage/IsReply/IsEmpty/HasMessage extensions; obsolete HasCount(n) became Count().IsEqualTo(n).
  • Telegram.Bot (pulled in by MinimalTelegramBot 0.1.0): IReplyMarkup is now ReplyMarkup, and the mock client implements the new DownloadFile(TGFile, ...) overload.
  • global.json opts dotnet test into Microsoft.Testing.Platform, which the .NET 10 SDK requires for TUnit.
  • The app itself compiled against the new packages without changes.

Status

CI is green: build OK, 53/53 tests pass. The Docker image build only runs after merge (push to master), so check that first image build before relying on the new tag.

https://claude.ai/code/session_01RYcxAF7nv5jXyZ3ARrbQWA


Generated by Claude Code

- net9.0 -> net10.0 (app and tests), Docker images sdk/aspnet 10.0
- MinimalTelegramBot 0.0.40 -> 0.1.0, Scrutor 6.1.0 -> 7.0.0
- TUnit 0.24.0 -> 1.81.10
- CI: .NET 10 SDK, checkout/setup-dotnet v5, run build and tests on
  pull requests; image publishing stays on pushes to master only

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01RYcxAF7nv5jXyZ3ARrbQWA
- Replace ValueAssertCondition-based custom assertions with a single
  Assertion<IResult> subclass and IAssertionSource extensions
- IReplyMarkup is now the ReplyMarkup class
- Implement ITelegramBotClient.DownloadFile(TGFile, ...) in the mock
- Drop the removed AssertConditions.Throws namespace

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01RYcxAF7nv5jXyZ3ARrbQWA
The .NET 10 SDK no longer runs TUnit through the VSTest target, so opt
dotnet test into the MTP runner via global.json. Also replace the
obsolete HasCount(n) assertions with Count().IsEqualTo(n).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01RYcxAF7nv5jXyZ3ARrbQWA
@rumkit
rumkit merged commit 539ae3c into master Nov 9, 2026
4 checks passed
@rumkit
rumkit deleted the dotnet10 branch November 9, 2026 21:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants