Allow dev environments to auto-enable dev-centric features in "slim" host builder #46096
Labels
area-networking
Includes servers, yarp, json patch, bedrock, websockets, http client factory, and http abstractions
Milestone
The new "slim" host builder API (#32485) removes a number of default features that exist to make the development time better. It would be great to allow for the development environment (e.g. Visual Studio,
dotnet run
,dotnet watch
, etc.) to be able to re-enable these features when launching the application during the development inner-loop experience so that even when using the slim builder these dev-centric features are still enabled when launched from the developer environment.The features in question:
This could be achieved by adding a new runtime switch that the slim host builder API would check and if enabled would add these features to the host builder. The switch can be set by the launching environment by passing a build property when building the project, e.g.
-p:EnableWebApplicationBuilderDevelopmentFeatures=true
(super bad name but you get the idea).The text was updated successfully, but these errors were encountered: