Rename ConfigureHostApplicationBuilder to ConfigureWebApplicationBuilder - #67917
Merged
Youssef1313 merged 5 commits intoJul 21, 2026
Merged
Conversation
Co-authored-by: Youssef1313 <31348972+Youssef1313@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Rename ConfigureHostApplicationBuilder to ConfigureWebApplicationBuilder
Rename ConfigureHostApplicationBuilder to ConfigureWebApplicationBuilder
Jul 20, 2026
Youssef1313
marked this pull request as ready for review
July 20, 2026 18:51
Youssef1313
reviewed
Jul 20, 2026
Contributor
There was a problem hiding this comment.
Pull request overview
Renames the WebApplicationFactory<TEntryPoint> protected customization hook from ConfigureHostApplicationBuilder to ConfigureWebApplicationBuilder to better align with WebApplicationBuilder terminology and avoid confusion with generic host builder APIs.
Changes:
- Renamed the protected virtual method to
ConfigureWebApplicationBuilderand updated the internal override-detection helper and call sites. - Updated the corresponding resource key/message used for the unsupported-override exception.
- Updated functional tests and PublicAPI tracking to reflect the rename.
Reviewed changes
Copilot reviewed 4 out of 4 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
| src/Mvc/test/Mvc.FunctionalTests/TestingInfrastructureInheritanceTests.cs | Updates test factory type/override usage and asserted exception message to the new method name. |
| src/Mvc/Mvc.Testing/src/WebApplicationFactory.cs | Renames the customization hook and override detection, and updates exception resource usage accordingly. |
| src/Mvc/Mvc.Testing/src/Resources.resx | Renames the resource key and updates message text to reference ConfigureWebApplicationBuilder. |
| src/Mvc/Mvc.Testing/src/PublicAPI.Unshipped.txt | Updates the unshipped public API entry for the renamed protected virtual method. |
cincuranet
reviewed
Jul 21, 2026
cincuranet
approved these changes
Jul 21, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
API-approved rename of
ConfigureHostApplicationBuilder→ConfigureWebApplicationBuilderonWebApplicationFactory<TEntryPoint>to avoid confusion withHost.CreateApplicationBuilder/Host.CreateDefaultBuilderscenarios.Description
WebApplicationFactory.cs: Renamed protected virtual method and private reflection helper; updated all call sites andnameofreferencesResources.resx: Renamed resource keyConfigureHostApplicationBuilderNotSupported→ConfigureWebApplicationBuilderNotSupported; updated error message textPublicAPI.Unshipped.txt: Updated public API surface entryTestingInfrastructureInheritanceTests.cs: Updated test fixture class and override references