Table of Contents

Analyzers 2.1.0 2026 September 12

Today, we're shipping two new releases:

  • xUnit.net Core Framework v3 4.0.1 (release notes)
  • xUnit.net Analyzers 2.1.0

It's been 4 weeks since the release of 2.0.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.0.0 to 2.1.0.

Usage Analyzers

Assertion Analyzers

Extensibility Analyzers

  • We have updated xUnit3005 to add support for:

    • CollectionBehaviorAttribute<T>
    • RegisterConsoleResultWriterAttribute<T>
    • RegisterMicrosoftTestingPlatformResultWriterAttribute<T>
    • RegisterResultWriterAttribute<T>
    • RegisterRunnerReportAttribute<T>
    • TestCaseOrdererAttribute<T>
    • TestClassOrdererAttribute<T>
    • TestCollectionOrdererAttribute<T>
    • TestMethodOrdererAttribute<T>
    • TestPipelineStartupAttribute<T>

    xunit/xunit#3622

  • BUG: We have fixed an issue with xUnit3005 which was causing false positives for legal assembly fixture parameters (namely, IMessageSink diagnosticMessageSink, ITestContextAccessor accessor, and ITestOutputHelper outputHelper). xunit/xunit#3618