XUnit3Helper.StartupModule
0.0.5-alpha
This is a prerelease version of XUnit3Helper.StartupModule.
dotnet add package XUnit3Helper.StartupModule --version 0.0.5-alpha
NuGet\Install-Package XUnit3Helper.StartupModule -Version 0.0.5-alpha
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="XUnit3Helper.StartupModule" Version="0.0.5-alpha" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="XUnit3Helper.StartupModule" Version="0.0.5-alpha" />
<PackageReference Include="XUnit3Helper.StartupModule" />
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add XUnit3Helper.StartupModule --version 0.0.5-alpha
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: XUnit3Helper.StartupModule, 0.0.5-alpha"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package XUnit3Helper.StartupModule@0.0.5-alpha
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=XUnit3Helper.StartupModule&version=0.0.5-alpha&prerelease
#tool nuget:?package=XUnit3Helper.StartupModule&version=0.0.5-alpha&prerelease
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
XUnit3Helper.StartupModule
This package is required by the XUnit3Helper.Integration. It contains an abstract startup module which you should use as a base for implementing your Web API.
Example — concise constructor syntax:
public sealed class Startup(
IWebHostEnvironment environment,
ConfigurationManager configurationManager)
: BaseStartupModule(environment, configurationManager)
{
}
Or using an explicit constructor that calls the base:
public sealed class Startup
: BaseStartupModule
{
public Startup(
IWebHostEnvironment environment,
ConfigurationManager configurationManager)
: base(environment, configurationManager)
{
}
}
You must also implement these methods:
- ConfigureConfigurationInternal
protected abstract IConfiguration ConfigureConfigurationInternal(
IWebHostEnvironment environment,
ConfigurationManager configurationManager);
Example:
protected override IConfiguration ConfigureConfigurationInternal(
IWebHostEnvironment environment,
ConfigurationManager configurationManager)
{
return configurationManager
//Set the application content root path
.SetBasePath(environment.ContentRootPath)
//Add appsettings file
.AddJsonFile("appsettings.json")
//Add environment-specific appsettings file (optional)
.AddJsonFile($"appsettings.{environment.EnvironmentName}.json", true)
//Add environment variables
.AddEnvironmentVariables()
.Build();
}
- ConfigureServices
public override IServiceCollection ConfigureServices(IServiceCollection services);
Example:
public override IServiceCollection ConfigureServices(IServiceCollection services)
{
services.AddCors();
services.AddControllers();
services.AddEndpointsApiExplorer();
services.AddSwaggerGen();
return services;
}
- Configure
public override IApplicationBuilder Configure(IApplicationBuilder app);
Example:
public override IApplicationBuilder Configure(IApplicationBuilder app)
{
app.UseRouting();
app.UseCors(policy => policy
.AllowAnyOrigin()
.AllowAnyHeader()
.AllowAnyMethod());
if (environment.IsDevelopment())
{
app.UseSwagger();
app.UseSwaggerUI();
}
app.UseHttpsRedirection();
app.UseAuthorization();
app.UseAuthorization();
app.UseEndpoints(configure => configure.MapControllers());
return app;
}
As a result, your Program.cs will look like this:
var builder = WebApplication.CreateBuilder(args);
var startup = new Startup(builder.Environment, builder.Configuration);
startup.ConfigureServices(builder.Services);
var applicationBuilder = builder.Build();
startup.Configure(applicationBuilder);
await applicationBuilder.RunAsync();
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net8.0 is compatible. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 is compatible. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 is compatible. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
net10.0
- No dependencies.
-
net8.0
- No dependencies.
-
net9.0
- No dependencies.
NuGet packages (1)
Showing the top 1 NuGet packages that depend on XUnit3Helper.StartupModule:
| Package | Downloads |
|---|---|
|
XUnit3Helper.Integration
Package Description |
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 0.0.5-alpha | 265 | 11/13/2025 |
| 0.0.4-alpha | 103 | 11/8/2025 |
| 0.0.3-alpha | 142 | 10/30/2025 |