Xunit.DependencyInjection 8.2.0

Use Microsoft.Extensions.DependencyInjection to inject xunit testclass. If you want write Microsoft.Extensions.Logging to ITestOutputHelper, please install Xunit.DependencyInjection.Logging Release notes: 8.2: Fix #60: support IAsyncDisposable. 8.1: Startup allow static method or class (like Asp.Net Core startup). 8.0: New feature: Support multiple startup. 7.7: Add [MethodData], like [MemberData], support injection. 7.6: Fix #48, each TestRunner should have a different scope. 7.5: Add XunitTestCaseRunnerAdapter, It will be support more XunitTestCase type. 7.4: Always set applicationName, unwarp TargetInvocationException. 7.3: Fix #41, activate ITestOutputHelperAccessor on tests without a constructor. 7.2: Add Startup analyzer. 7.1: Fix can't run test case when host.StartAsync() throw exception. 7.0: Add fixture injection and refactor DependencyInjectionTestFramework, you don't have to declare the [assembly: TestFrameworkAttribute] on normal case.

No packages depend on Xunit.DependencyInjection.

Use Microsoft.Extensions.DependencyInjection to inject xunit testclass. If you want write Microsoft.Extensions.Logging to ITestOutputHelper, please install Xunit.DependencyInjection.Logging Release notes: 8.2: Fix #60: support IAsyncDisposable. 8.1: Startup allow static method or class (like Asp.Net Core startup). 8.0: New feature: Support multiple startup. 7.7: Add [MethodData], like [MemberData], support injection. 7.6: Fix #48, each TestRunner should have a different scope. 7.5: Add XunitTestCaseRunnerAdapter, It will be support more XunitTestCase type. 7.4: Always set applicationName, unwarp TargetInvocationException. 7.3: Fix #41, activate ITestOutputHelperAccessor on tests without a constructor. 7.2: Add Startup analyzer. 7.1: Fix can't run test case when host.StartAsync() throw exception. 7.0: Add fixture injection and refactor DependencyInjectionTestFramework, you don't have to declare the [assembly: TestFrameworkAttribute] on normal case.

Version Downloads Last updated
11.1.0 32 11/18/2025
11.0.0 37 09/24/2025
10.8.0 41 09/25/2025
10.7.0 41 09/10/2025
10.6.0 37 07/18/2025
10.5.0 49 06/19/2025
10.4.2 51 05/22/2025
10.4.1 58 05/08/2025
10.4.0 52 04/14/2025
10.3.0 64 03/11/2025
10.2.1 54 03/10/2025
10.2.0 54 03/10/2025
10.1.1 47 03/10/2025
10.1.0 67 01/20/2025
10.0.1-preview.1 62 01/22/2025
10.0.0 56 01/22/2025
10.0.0-preview.1 62 01/24/2025
9.9.1 52 05/09/2025
9.9.0 57 03/10/2025
9.8.0 39 01/20/2025
9.7.1 67 12/29/2024
9.7.0 68 11/27/2024
9.6.0 46 11/25/2024
9.5.0 57 11/28/2024
9.4.0 60 12/14/2024
9.3.1 68 11/14/2024
9.3.0 73 11/28/2024
9.2.1 79 05/28/2024
9.1.0 74 04/21/2024
9.0.1 82 05/02/2024
9.0.0 55 08/15/2025
8.9.1 72 05/11/2024
8.9.0 80 11/09/2023
8.8.2 73 05/11/2024
8.8.1 72 05/28/2024
8.7.2 72 05/10/2024
8.7.1 68 05/05/2024
8.7.0 59 05/21/2024
8.6.1 70 05/11/2024
8.6.0 67 05/22/2024
8.5.0 65 05/28/2024
8.4.1 75 05/10/2024
8.4.0 74 05/24/2024
8.3.0 52 05/28/2024
8.2.0 39 05/15/2024
8.1.0 43 05/28/2024
8.0.0 68 05/07/2024
7.7.0 77 05/01/2024
7.6.0 78 05/19/2024
7.5.1 52 05/01/2024
7.4.0 79 05/27/2024
7.3.0 62 05/11/2024
7.2.0 79 05/22/2024
7.1.0 71 05/21/2024
7.0.2 307 06/25/2022