AspNet.KickStarter.Core
1.2.3
Prefix Reserved
dotnet add package AspNet.KickStarter.Core --version 1.2.3
NuGet\Install-Package AspNet.KickStarter.Core -Version 1.2.3
<PackageReference Include="AspNet.KickStarter.Core" Version="1.2.3" />
paket add AspNet.KickStarter.Core --version 1.2.3
#r "nuget: AspNet.KickStarter.Core, 1.2.3"
// Install AspNet.KickStarter.Core as a Cake Addin #addin nuget:?package=AspNet.KickStarter.Core&version=1.2.3 // Install AspNet.KickStarter.Core as a Cake Tool #tool nuget:?package=AspNet.KickStarter.Core&version=1.2.3
AspNet.KickStarter.Core
This library provides small helpers to reduce the repetitive code used to run AspNet Minimal API projects.
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();
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)
IMeterFactory Extensions
This allows a Meter to be created with the Assembly name
var meter = meterFactory.CreateAssemblyMeter();
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. |
-
net8.0
- Microsoft.AspNetCore.OpenApi (>= 8.0.6)
- Microsoft.VisualStudio.Azure.Containers.Tools.Targets (>= 1.20.1)
NuGet packages (10)
Showing the top 5 NuGet packages that depend on AspNet.KickStarter.Core:
Package | Downloads |
---|---|
AspNet.KickStarter.AddIn.ApplicationConfiguration
This simplifies the bootstrapping code to run a minimal API with custom WebApplication configuration. |
|
AspNet.KickStarter.AddIn.HealthHandler
This simplifies the bootstrapping code to run a minimal API with health endpoints. |
|
AspNet.KickStarter.AddIn.Serilog
This simplifies the bootstrapping code to run a minimal API with Serilog logging. |
|
AspNet.KickStarter.AddIn.AdditionalConfiguration
This simplifies the bootstrapping code to run a minimal API with custom WebApplicationBuilder configuration. |
|
AspNet.KickStarter.AddIn.FluentValidation
This simplifies the bootstrapping code to run a minimal API with support for FluentValidation. |
GitHub repositories
This package is not used by any popular GitHub repositories.