WebApplicationBuilder
WebApplicationBuilder is an ASP.NET Core builder type that configures application services, hosting, logging, and related settings before constructing a WebApplication.
ASP.NET Core in Action, 3e
WebApplicationBuilder is the ASP.NET Core builder type that configures application services, logging, and other hosting concerns before constructing a web application.
- How it is used
- Configures services, logging, and other application setup in Program.cs before creating a WebApplication.
- How deep it goes
- Works through the create-configure-build sequence and service registration, while deferring detailed treatment of dependency injection, configuration, and logging.
- Examples
- Uses a minimal API with HTTP request logging and a JSON /person endpoint, then a Razor Pages setup.
- What you can do after
- Build it from scratch by configuring a builder, calling Build(), then adding middleware and endpoints before Run().
Read how ASP.NET Core in Action, 3e explains WebApplicationBuilder →
Pro ASP.NET Core 7, Tenth Edition
WebApplicationBuilder is the ASP.NET Core builder type that configures an application and its services before constructing the web application.
- How it is used
- Configures ASP.NET Core services and startup settings before constructing the WebApplication request pipeline.
- How deep it goes
- Explains platform setup, service registration, Build transition, configuration access, and environment selection without descending into framework internals.
- Examples
- Uses a minimal Hello World endpoint, conditional formatter services, configuration-driven setup, middleware, and environment-aware endpoints.
- What you can do after
- Build from scratch a configured ASP.NET Core application with registered services, environment-specific choices, middleware, and mapped endpoints.
Read how Pro ASP.NET Core 7, Tenth Edition explains WebApplicationBuilder →
Related concepts
- WebApplicationproduces · WebApplication is an ASP.NET Core application type that hosts configured services, runs the web server, and exposes the HTTP request-processing pipeline.
- application propertiesuses · Application properties are named configuration settings that provide values used to configure an application's behavior.
- ConfigurationManagerconfigures · ConfigurationManager is the .NET configuration type that builds and exposes application configuration while implementing IConfigurationBuilder and IConfigurationRoot.
- Logging sectionconfigures · The Logging section is the standard ASP.NET Core configuration section containing logging provider and filtering settings.
- services propertyuses · The Services property is a WebApplicationBuilder property exposing the service collection used to register application and framework dependencies for dependency injection.
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.

