From 5f7e1a0004a8215b1c5b5bfb0f7fac5335f9b942 Mon Sep 17 00:00:00 2001 From: Javier Calvarro Nelson Date: Thu, 9 Apr 2020 10:28:19 +0200 Subject: [PATCH] [Static web assets] Add comment about static web assets in CreateDefaultBuilder (#20653) Updates the existing comment to indicate that we plug-in static web assets in development --- src/DefaultBuilder/src/GenericHostBuilderExtensions.cs | 1 + src/DefaultBuilder/src/WebHost.cs | 1 + 2 files changed, 2 insertions(+) diff --git a/src/DefaultBuilder/src/GenericHostBuilderExtensions.cs b/src/DefaultBuilder/src/GenericHostBuilderExtensions.cs index 4e11e3c2ca..37ca82e8e5 100644 --- a/src/DefaultBuilder/src/GenericHostBuilderExtensions.cs +++ b/src/DefaultBuilder/src/GenericHostBuilderExtensions.cs @@ -15,6 +15,7 @@ namespace Microsoft.Extensions.Hosting /// /// The following defaults are applied to the : /// use Kestrel as the web server and configure it using the application's configuration providers, + /// configure the to map static web assets when is 'Development' using the entry assembly, /// adds the HostFiltering middleware, /// adds the ForwardedHeaders middleware if ASPNETCORE_FORWARDEDHEADERS_ENABLED=true, /// and enable IIS integration. diff --git a/src/DefaultBuilder/src/WebHost.cs b/src/DefaultBuilder/src/WebHost.cs index c372114540..e8f00fa602 100644 --- a/src/DefaultBuilder/src/WebHost.cs +++ b/src/DefaultBuilder/src/WebHost.cs @@ -146,6 +146,7 @@ namespace Microsoft.AspNetCore /// load from environment variables, /// load from supplied command line args, /// configure the to log to the console and debug output, + /// configure the to map static web assets when is 'Development' using the entry assembly, /// adds the HostFiltering middleware, /// adds the ForwardedHeaders middleware if ASPNETCORE_FORWARDEDHEADERS_ENABLED=true, /// and enable IIS integration.