Skip to content

Update to NET 10 SDK#3128

Merged
jnyrup merged 6 commits intofluentassertions:mainfrom
jnyrup:net10
Dec 2, 2025
Merged

Update to NET 10 SDK#3128
jnyrup merged 6 commits intofluentassertions:mainfrom
jnyrup:net10

Conversation

@jnyrup
Copy link
Member

@jnyrup jnyrup commented Dec 2, 2025

This upgrade the building from using .NET 9 SDK to .NET 10 SDK.
This allows us to upgrade to C# 14.

The last commit is a bug fix necessary to run the tests when compiling the test projects with .NET 10 SDK.

IMPORTANT

  • If the PR touches the public API, the changes have been approved in a separate issue with the "api-approved" label.
  • The code complies with the Coding Guidelines for C#.
  • The changes are covered by unit tests which follow the Arrange-Act-Assert syntax and the naming conventions such as is used in these tests.
  • If the PR adds a feature or fixes a bug, please update the release notes with a functional description that explains what the change means to consumers of this library, which are published on the website.
  • If the PR changes the public API the changes needs to be included by running AcceptApiChanges.ps1 or AcceptApiChanges.sh.
  • If the PR affects the documentation, please include your changes in this pull request so the documentation will appear on the website.
    • Please also run ./build.sh --target spellcheck or .\build.ps1 --target spellcheck before pushing and check the good outcome

CONTRIBUTOR LICENSE GRANT

By submitting this contribution, the contributor hereby irrevocably grants to the project owners and maintainers a perpetual, worldwide, royalty-free, irrevocable license to use, reproduce, modify, distribute, sublicense, and create derivative works of the contribution for any purpose and under any terms, including proprietary licensing.

The contributor waives any moral rights in the contribution to the extent permitted by law and agrees not to assert any claim of authorship or control over the contribution. The contributor represents that they are the sole author of the contribution and that it is provided free of any third-party claims.

The contributor understands and agrees that the maintainers may, at their sole discretion, use, license, or redistribute the contribution as part of any work and under any terms they choose, without further permission or attribution.

  • I have read the Contributor License Grant and accept the conditions
  • I'm interested in a free license for Fluent Assertions and will share my email address through [email protected]

C# 14' "first-class spans" causes `MemoryExtensions.Contains` to be picked over `Enumerable.Contains`.
`ConstantSubExpressionReductionVisitor.Visit` calls `DynamicInvoke` which then throws a `NotSupportedException` from [`RuntimeMethodInfo.ThrowNoInvokeException`](https://source.dot.net/#System.Private.CoreLib/src/libraries/System.Private.CoreLib/src/System/Reflection/RuntimeMethodInfo.cs,70)

For more information see dotnet/runtime#120251
@coveralls
Copy link

Pull Request Test Coverage Report for Build 19864177618

Details

  • 34 of 34 (100.0%) changed or added relevant lines in 9 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage increased (+0.01%) to 97.165%

Totals Coverage Status
Change from base Build 19641739591: 0.01%
Covered Lines: 12824
Relevant Lines: 13042

💛 - Coveralls

@jnyrup
Copy link
Member Author

jnyrup commented Dec 2, 2025

If I read this ticket correctly, we can ignore that Qodana fails in this PR.
It's an edge case when switching from sln to slnx, as the slnx doesn't yet exists in the target branch.

https://youtrack.jetbrains.com/projects/QD/issues/QD-11978/Read-old-and-new-qodana.yaml-during-PR-mode-when-there-are-breaking-changes

@jnyrup jnyrup merged commit 9d9dd02 into fluentassertions:main Dec 2, 2025
6 of 7 checks passed
@jnyrup jnyrup added the building Building and Infrastructure of Fluent Assertions label Dec 17, 2025
@jnyrup jnyrup deleted the net10 branch December 18, 2025 19:07
This was referenced Mar 19, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

building Building and Infrastructure of Fluent Assertions

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants