MVFC.Pack.Api
4.0.1
dotnet add package MVFC.Pack.Api --version 4.0.1
NuGet\Install-Package MVFC.Pack.Api -Version 4.0.1
<PackageReference Include="MVFC.Pack.Api" Version="4.0.1" />
<PackageVersion Include="MVFC.Pack.Api" Version="4.0.1" />
<PackageReference Include="MVFC.Pack.Api" />
paket add MVFC.Pack.Api --version 4.0.1
#r "nuget: MVFC.Pack.Api, 4.0.1"
#:package MVFC.Pack.Api@4.0.1
#addin nuget:?package=MVFC.Pack.Api&version=4.0.1
#tool nuget:?package=MVFC.Pack.Api&version=4.0.1
MVFC.Pack.Api
Metapackage for ASP.NET Core APIs — structured logging, OpenAPI docs, JWT auth, API versioning and Health Checks, all pinned and ready to use.
Motivation
Building production-ready APIs in- .NET 9+ means installing and wiring the same set of libraries every time: a logging sink, an OpenAPI provider, a JWT middleware, a versioning library and health check endpoints. Each with its own version to keep in sync.
MVFC.Pack.Api installs all of them in a single reference and pins every version, so you start with a consistent, battle-tested API baseline from the first line of code.
Installation
dotnet add package MVFC.Pack.Api
Quick Start
// Program.cs — everything is available after install, no extra packages needed
builder.Host.UseSerilog((ctx, cfg) =>
cfg.ReadFrom.Configuration(ctx.Configuration));
builder.Services.AddOpenApi();
builder.Services.AddApiVersioning(options =>
{
options.DefaultApiVersion = new ApiVersion(1, 0);
options.AssumeDefaultVersionWhenUnspecified = true;
options.ReportApiVersions = true;
});
builder.Services.AddAuthentication(JwtBearerDefaults.AuthenticationScheme)
.AddJwtBearer(options =>
{
options.Authority = builder.Configuration["Auth:Authority"];
options.Audience = builder.Configuration["Auth:Audience"];
});
builder.Services.AddHealthChecks();
var app = builder.Build();
app.MapOpenApi();
app.MapScalarApiReference();
app.MapHealthChecks("/health");
app.UseAuthentication();
app.UseAuthorization();
Included Packages
| Package | Version |
|---|---|
| Serilog.AspNetCore | 10.0.0 |
| Serilog.Sinks.File | 7.0.0 |
| Serilog.Sinks.Console | 6.1.1 |
| Microsoft.AspNetCore.OpenApi | 10.0.3 |
| Microsoft.AspNetCore.Authentication.JwtBearer | 10.0.3 |
| Asp.Versioning.Http | 8.1.1 |
| AspNetCore.Scalar | 1.2.0 |
| Microsoft.Extensions.Diagnostics.HealthChecks | 10.0.3 |
| AspNetCore.HealthChecks.UI.Client | 9.0.0 |
License
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | 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. |
-
net10.0
- Asp.Versioning.Http (>= 10.0.0)
- AspNetCore.HealthChecks.UI.Client (>= 9.0.0)
- AspNetCore.Scalar (>= 1.2.0)
- Microsoft.AspNetCore.Authentication.JwtBearer (>= 10.0.9)
- Microsoft.AspNetCore.OpenApi (>= 10.0.9)
- Microsoft.Extensions.Diagnostics.HealthChecks (>= 10.0.9)
- Serilog.AspNetCore (>= 10.0.0)
- Serilog.Sinks.Console (>= 6.1.1)
- Serilog.Sinks.File (>= 7.0.0)
-
net9.0
- Asp.Versioning.Http (>= 8.1.1)
- AspNetCore.HealthChecks.UI.Client (>= 9.0.0)
- AspNetCore.Scalar (>= 1.2.0)
- Microsoft.AspNetCore.Authentication.JwtBearer (>= 9.0.2)
- Microsoft.AspNetCore.OpenApi (>= 9.0.2)
- Microsoft.Extensions.Diagnostics.HealthChecks (>= 9.0.2)
- Serilog.AspNetCore (>= 9.0.0)
- Serilog.Sinks.Console (>= 6.1.1)
- Serilog.Sinks.File (>= 7.0.0)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.