Analyzers 2.4.0 2026 December 4
Today, we're shipping three new releases:
- xUnit.net Core Framework v3
4.0.4(release notes) - xUnit.net Analyzers
2.4.0 - xUnit.net Visual Studio adapter
4.0.2(release notes)
It's been 4 weeks since the release of 2.3.0.
As always, we'd like to thank all the users who contributed to the success of xUnit.net through usage, feedback, and code. 🎉
Release Notes
These release notes are a comprehensive list of changes from 2.3.0 to 2.4.0.
Usage Analyzers
BUG: We have fixed an issue with xUnit1051 which would recommend using an overload with
CancellationTokenthat wasn't reachable due to visibility. xunit/xunit#3673BUG: We have fixed an issue with xUnit1051's fixer where it would incorrectly place the cancellation token when using named arguments. xunit/xunit#3671
BUG: We have fixed an issue with xUnit1073 which was causing false positives from
[Collection]inherited from a referenced assembly. xunit/xunit#3666
Assertion Analyzers
- BUG: We have fixed the remaining issues with xUnit2023's fixer where it could create incorrect code while fixing. xunit/xunit#3336 xunit/xunit.analyzers#243