AspNet.KickStarter 1.4.0

Prefix Reserved
dotnet add package AspNet.KickStarter --version 1.4.0
                    
NuGet\Install-Package AspNet.KickStarter -Version 1.4.0
                    
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="AspNet.KickStarter" Version="1.4.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="AspNet.KickStarter" Version="1.4.0" />
                    
Directory.Packages.props
<PackageReference Include="AspNet.KickStarter" />
                    
Project file
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 AspNet.KickStarter --version 1.4.0
                    
#r "nuget: AspNet.KickStarter, 1.4.0"
                    
#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 AspNet.KickStarter@1.4.0
                    
#: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=AspNet.KickStarter&version=1.4.0
                    
Install as a Cake Addin
#tool nuget:?package=AspNet.KickStarter&version=1.4.0
                    
Install as a Cake Tool

AspNet.KickStarter

This library provides small helpers to reduce the repetitive code used to run AspNet Minimal API projects.

The AspNet.KickStarter package can be used as a single reference to pull in all of the individual packages in the collection.

To reduce the dependencies the individual packages may be referenced instead.

  • AspNet.KickStarter.Core This is the base library that provides the ApiBuilder.
  • AspNet.KickStarter.AddIn.xxx These are the packages that provide the extended functionality such as OpenTelemetry and FluentValidation.
  • AspNet.KickStarter.CQRS This provides a number of interfaces and classes to use when working with MediatR.
  • AspNet.KickStarter.FunctionalResult Includes functional result types.

ApiBuilder

This simplifies the bootstrapping code to run a minimal API with optional support for Serilog, FluentValidation, Prometheus metrics and Swagger.

The most basic use in a Program.cs file would be

await new ApiBuilder().Build(args).RunAsync();

For something more visible, add Swagger and some endpoints:

await new ApiBuilder().WithSwagger().WithHealthHandler().Build(args).RunAsync();

Many fluent extension methods are available through the AddIn packages to add extra functionality. Each extension may provide additional configuration parameters.

Further information about the extensions may be found in the readme for the AddIn package. See NuGet for the full list of AddIns.

await new ApiBuilder()
    .WithSerilog()
    .WithSwagger()
    .WithHealthHandler()
    .WithServices(builder => {...})
    .WithEndpoints(app => {...})
    .WithMappings(() => {...})
    .WithOpenTelemetry()
    .WithFluentValidationFromAssemblyContaining<T>()
    .WithAdditionalConfiguration(builder => {...})
    .Build(args)
    .RunAsync();

IEndpointRouteBuilder Extensions

These extensions consolidate the AspNet extensions

app.MapXXX(route, handler)
   .WithName(name)
   .WithDescription(description)
   .WithOpenApi()

into a single extension with parameters for the name and description.

MapXXX(route, name, description, handler)
Product 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 was computed.  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.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
1.4.0 249 3/4/2025
1.3.0 147 2/1/2025
1.2.3 285 6/18/2024
1.2.2 306 6/3/2024
1.2.1 125 6/3/2024
1.2.0 137 6/3/2024
1.1.0 411 12/4/2023
1.0.7 652 10/22/2023
1.0.6 211 10/21/2023
1.0.5 448 10/9/2023
1.0.4 186 10/6/2023
1.0.3 205 10/4/2023
1.0.2 179 10/3/2023
1.0.1 177 10/1/2023
1.0.0 184 9/30/2023