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 and hosting concerns before constructing an ASP.NET Core web application.
- How deep it goes
- Explains the startup sequence and service registration with examples, while deferring detailed configuration, logging, and dependency injection treatment.
- Examples
- Uses minimal API examples with HTTP logging and a JSON endpoint, plus a Razor Pages startup example.
- What you can do after
- Apply it via ASP.NET Core to register services, configure logging, and build an application ready for middleware and endpoints.
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 →
Also covered in
Related concepts
- WebApplicationproduces · A framework type that represents a web application and provides application-level configuration or lifecycle capabilities.
- configurationuses · Configuration is a set of settings or structural choices that specifies how a system, application, or component is organized or operates.
- ConfigurationManagerconfigures · ConfigurationManager is a .NET API type for building and accessing application configuration settings.
- Logging sectionconfigures · The Logging section is the standard ASP.NET Core configuration section containing logging provider and filtering settings.
- services propertyhas part · The Services property is a WebApplicationBuilder property exposing the service collection used to register application and framework dependencies for dependency injection.
Questions about WebApplicationBuilder
What is WebApplicationBuilder?
WebApplicationBuilder is an ASP.NET Core builder type that configures application services, hosting, logging, and related settings before constructing a WebApplication.
Which Manning books explain WebApplicationBuilder?
ASP.NET Core in Action, 3e and Pro ASP.NET Core 7, Tenth Edition.
What are the parts of WebApplicationBuilder?
WebApplicationBuilder includes services property and hosting environment.
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.

