Info
| Version: | 11.0.0 | 
| Author(s): | Wei Peng | 
| Last Update: | Sunday, September 21, 2025 | 
| .NET Fiddle: | Create the first Fiddle | 
| Project Url: | https://github.com/pengweiqhca/Xunit.DependencyInjection/tree/main/src/Xunit.DependencyInjection | 
| NuGet Url: | https://www.nuget.org/packages/Xunit.DependencyInjection | 
Install
Install-Package Xunit.DependencyInjection
                        dotnet add package Xunit.DependencyInjection
                        paket add Xunit.DependencyInjection
                        
                                Xunit.DependencyInjection Download (Unzip the "nupkg" after downloading)
                            
                        Dependencies
                                         .NETStandard 2.0 
                                        
                    - Microsoft.Extensions.Hosting(>= 2.1.0)
- xunit.extensibility.execution(>= 2.2.0 && < 3.0.0)
- Microsoft.Extensions.Hosting(>= 2.1.0)
- xunit.extensibility.execution(>= 2.1.0 && < 3.0.0)
Tags
 
                
If you want write Microsoft.Extensions.Logging to ITestOutputHelper, please install Xunit.DependencyInjection.Logging.
Release notes:
11.0: C# 14, Downgrade Microsoft.Extensions.Hosting to 8.0.
10.8: Add CreateHostApplicationBuilder method.
10.7: Update xunit.v3 to 3.0.1, does not set ApplicationName if it is already configured.
10.6: Update xunit.v3 to 3.0.0.
10.5: Improve compatibility with top level statements.
10.4: Fix #146.
10.3: Update xunit.v3 to 2.0.0.
10.2: Fix some parallelization problem.
10.1: Allow the default startup to be missing anywhere.
10.0: Upgrade xunit to v3.