Skip to content

Add .NET 11 sample and target tests for net10/net11 - #183

Merged
adrianiftode merged 2 commits into
masterfrom
features/net11-support
Nov 15, 2026
Merged

adrianiftode merged 2 commits into
masterfrom
features/net11-support

Conversation

@adrianiftode

@adrianiftode adrianiftode commented Nov 15, 2026 •

Copy link
Copy Markdown
Owner

Adds a .NET 11 sample API, moves the sample test matrix from net9.0;net10.0 to net10.0;net11.0, and migrates the solution to the new .slnx format.

Changes

  • New: samples/Sample.Api.Net11 (net11.0), mirroring Sample.Api.Net10 and sharing Sample.Api.Shared.projitems.
  • Removed: samples/Sample.Api.Net90 and every net9.0 solution/project reference.
  • Tests: the four sample API test projects now reference Microsoft.AspNetCore.Mvc.Testing 11.0.0 and Sample.Api.Net11 for net11.0; net10.0 support is unchanged.
  • Solution: FluentAssertions.Web.sln is replaced by FluentAssertions.Web.slnx (generated with dotnet sln migrate), preserving all 29 projects and solution folders. No unrelated x64/x86 configuration churn.
  • Docs: CONVENTIONS.md and the CallerArgumentExpressionAttribute comment now say net10.0/net11.0; the build command references .slnx.
  • CI: AppVeyor installs the .NET 11 SDK via dotnet-install.ps1, because the VS2026 image still ships only the .NET 10 SDK (verified against AppVeyor's published image software list).

Verification

  • dotnet build FluentAssertions.Web.slnx -c Release → 0 errors.
  • Bare dotnet restore / dotnet build / dotnet test auto-detect the .slnx.
  • Full dotnet test on net10.0 + net11.0 → all projects pass, including all four sample flavours, FluentAssertions, FluentAssertions.v8, AwesomeAssertions, Shouldly, Assertions.Web, formatter and serializer suites.

- Add samples/Sample.Api.Net11 on net11.0, mirroring Sample.Api.Net10.
- Remove samples/Sample.Api.Net90 and the net9.0 test target.
- Reference Microsoft.AspNetCore.Mvc.Testing 11.0.0 and the Net11 sample
  from the four sample API test projects.
- Update the solution and docs to net10.0/net11.0.
- Install the .NET 11 SDK in AppVeyor: the VS2026 image still ships only
  the .NET 10 SDK.
Migrate FluentAssertions.Web.sln to the XML-based FluentAssertions.Web.slnx
using dotnet sln migrate, remove the legacy .sln, and update the build
command in CONVENTIONS.md.

Verified that bare dotnet restore, dotnet build and dotnet test detect
the .slnx and that the full suite still passes.
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