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
                    
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="MVFC.Pack.Api" Version="4.0.1" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="MVFC.Pack.Api" Version="4.0.1" />
                    
Directory.Packages.props
<PackageReference Include="MVFC.Pack.Api" />
                    
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 MVFC.Pack.Api --version 4.0.1
                    
#r "nuget: MVFC.Pack.Api, 4.0.1"
                    
#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 MVFC.Pack.Api@4.0.1
                    
#: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=MVFC.Pack.Api&version=4.0.1
                    
Install as a Cake Addin
#tool nuget:?package=MVFC.Pack.Api&version=4.0.1
                    
Install as a Cake Tool

MVFC.Pack.Api

🇧🇷 Leia em Português · ← Back to MVFC.Pack

License Platform NuGet Version NuGet Downloads

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

Apache-2.0

Product 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. 
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
4.0.1 173 6/26/2026
4.0.0 243 4/8/2026
3.0.3 254 3/20/2026
2.0.1 286 2/23/2026
2.0.0 288 2/23/2026
1.0.3 276 2/23/2026