Skip to content

Update all dependencies and retarget to .NET 11 - #27

Merged
damianh merged 1 commit into
mainfrom
dh/update-dependencies
Nov 12, 2026
Merged

damianh merged 1 commit into
mainfrom
dh/update-dependencies

Conversation

@damianh

@damianh damianh commented Nov 12, 2026

Copy link
Copy Markdown
Owner

Brings every dependency up to date: NuGet packages, the .NET target, the Testcontainers examples and the CI toolchains. Restore was also failing NuGet audit (Aspire 13.6.4 and a transitive System.Formats.Cbor 9.0.5), and the floating AWSSDK.* 4.x versions had silently broken Cloud Map support.

Changes

.NET

  • Retargets the solution, Dockerfile (sdk/runtime-deps:11.0-alpine) and the .NET example to net11.0.
  • MicroStack.LambdaBootstrap and SimpleHandler deliberately stay on net10.0: they model the AWS dotnet10 Lambda runtime and LambdaWorker hardcodes that TFM.
  • Bumps ASP.NET Core 11.0.0, Aspire 13.6.5, MessagePack 3.1.12, MinVer 8, xunit.v3 4.0.3, bunit 2.15.2, AWSSDK, Testcontainers 4.16 and Atoll 0.13.1.

Cloud Map: Smithy RPC v2 CBOR

  • From AWSSDK.ServiceDiscovery 4.0.102, the SDK sends POST /service/Route53AutoNaming_v20170314/operation/<Op> with a CBOR body. The emulator rejected these with "Invalid JSON", which broke all 16 ServiceDiscoveryTests. main will hit the same failure on its next restore.
  • Adds Internal/SmithyRpcV2Cbor.cs, a reusable adapter that:
    • transcodes the CBOR request to JSON;
    • synthesises X-Amz-Target from the path;
    • calls the existing JSON handler;
    • transcodes the response back to CBOR, with known timestamp fields encoded as tag 1 and errors converted to the CBOR error shape.
  • The router now maps that path prefix to servicediscovery explicitly instead of relying on the credential scope.
  • CloudWatch's existing CBOR implementation is left untouched.

Security

  • MicroStack.Tests gets a FrameworkReference to Microsoft.AspNetCore.App, so NuGet prunes the vulnerable System.Formats.Cbor 9.0.5 that AWSSDK.Extensions.CborProtocol pulls in. The latest CborProtocol still depends on 9.0.5.

ASP.NET 11 analyzer workarounds

  • Resources.razor: replaced an @for loop with foreach over .Index() to avoid an NRE in the new for-loop closure analyzer (AD0001).
  • Resources.razor.cs: JS interop calls now catch JSException.
  • UI.Tests: suppressed BL0016, a false positive on the fake IJSRuntime.

Examples

  • Go: go 1.26 and latest AWS SDK v2 / testcontainers-go.
  • Python: boto3 1.44, pytest 9.2, testcontainers 4.15. requirements.lock is now generated with uv pip compile --universal --generate-hashes, so it installs with --require-hashes on Python 3.10-3.14 and on every OS.
  • Java: release 25, AWS SDK 2.58, Testcontainers 2.0.5 (artifact renamed to testcontainers-junit-jupiter), JUnit 6.1.3, latest compiler and surefire plugins.
  • TypeScript: TypeScript 7, latest AWS SDK v3 and testcontainers 12.

CI

  • Moves actions to their latest majors (checkout v7, setup-* v6/v7, upload-artifact v7, pages v5, action-gh-release v3).
  • Java 25, Node 24, Python 3.14.
  • Installs both .NET 10.0.x and 11.0.x: the Lambda bootstrap and Atoll.Cli 0.13.1 still need the 10 runtime. Drops dotnet-quality: preview.

Docs: updated the .NET and Java version references.

Review notes

  • Some csproj bumps (Aspire.Hosting, MessagePack 3, Amazon.Lambda.Core, AWSSDK.SQS, xunit, bunit) were existing working-tree edits; they were kept, with their formatting churn reverted.
  • npm audit still reports 6 moderate issues, all via testcontainers -> archiver. They can only be fixed upstream.
  • The ASPIRE010 build warning was already there before this change.

Verification (local)

  • dotnet build MicroStack.slnx -c Release and the Docs build are clean apart from ASPIRE010.
  • dotnet list package --vulnerable reports nothing; --outdated finds no updates in any project.
  • Tests:
    • MicroStack.Tests: 1334 passed, 1 skipped.
    • UI.Tests: 161 passed.
    • Aspire.Tests: 5 passed.
  • docker build, the container contract tests, all five Testcontainers examples and the container smoke test pass against the new image.

- Retarget the solution, Dockerfile images and .NET example to .NET 11
  (Lambda bootstrap/test handler stay on net10.0 to match the dotnet10 runtime).
- Bump NuGet packages (ASP.NET Core 11, Aspire 13.6.5, MessagePack 3, MinVer 8,
  xunit.v3 4.0.3, bunit, AWSSDK, Testcontainers, Atoll).
- Add Smithy RPC v2 CBOR support for Cloud Map; AWSSDK.ServiceDiscovery 4.0.102+
  switched protocols.
- Prune vulnerable System.Formats.Cbor 9.0.5 via the shared framework.
- Work around ASP.NET 11 analyzer issues in the Resources page and UI tests.
- Update Go, Python (universal hashed lock), Java (25, Testcontainers 2,
  JUnit 6) and TypeScript examples.
- Move CI to latest action majors, .NET 10+11, Java 25, Node 24, Python 3.14.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
@damianh
damianh merged commit 688db04 into main Nov 12, 2026
1 check passed
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.

1 participant