liveBook · Manning

HostBuilder

HostBuilder is a .NET hosting API type that configures and constructs an application host.

How 2 Manning books explain it

ASP.NET Core in Action, 3e

HostBuilder is a .NET hosting API type that configures application services, hosting, configuration, and middleware before creating an application host.

How it is used
Configures application hosting, services, configuration, logging, middleware, and endpoints before creating a runnable host.
How deep it goes
Explains default setup, customization points, and Build()/Run() lifecycle, while deferring implementation details behind framework helpers.
Examples
Uses default-builder customization, Startup wiring, and an in-memory TestServer integration test with HttpClient.
What you can do after
Build it from scratch or customize defaults, then run an application host or exercise a web pipeline in memory.

Read how ASP.NET Core in Action, 3e explains HostBuilder →

.NET MAUI in Action

A host builder is a .NET hosting configuration object that constructs and configures an application host.

How it is used
Configures the .NET MAUI startup pipeline before launching the application.
How deep it goes
Explains builder creation, extension-method configuration, and Build(), but does not descend into host internals.
Examples
Uses MauiProgram.cs with UseMauiApp<App>(), ConfigureFonts, and Build().
What you can do after
Build and configure a .NET MAUI application host from MauiProgram.CreateMauiApp.

Read how .NET MAUI in Action explains HostBuilder →

Related concepts

These guides are generated from the text of Manning books by Manning's knowledge graph and link to the sections they draw on. The full books are available on liveBook and at manning.com.