Skip to content

Commit 5f7e1a0

Browse files
authored
[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
1 parent 1bbca15 commit 5f7e1a0

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

src/DefaultBuilder/src/GenericHostBuilderExtensions.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ public static class GenericHostBuilderExtensions
1515
/// <remarks>
1616
/// The following defaults are applied to the <see cref="IWebHostBuilder"/>:
1717
/// use Kestrel as the web server and configure it using the application's configuration providers,
18+
/// configure the <see cref="IWebHostEnvironment.WebRootFileProvider"/> to map static web assets when <see cref="IHostEnvironment.EnvironmentName"/> is 'Development' using the entry assembly,
1819
/// adds the HostFiltering middleware,
1920
/// adds the ForwardedHeaders middleware if ASPNETCORE_FORWARDEDHEADERS_ENABLED=true,
2021
/// and enable IIS integration.

src/DefaultBuilder/src/WebHost.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -146,6 +146,7 @@ public static IWebHostBuilder CreateDefaultBuilder() =>
146146
/// load <see cref="IConfiguration"/> from environment variables,
147147
/// load <see cref="IConfiguration"/> from supplied command line args,
148148
/// configure the <see cref="ILoggerFactory"/> to log to the console and debug output,
149+
/// configure the <see cref="IWebHostEnvironment.WebRootFileProvider"/> to map static web assets when <see cref="IHostEnvironment.EnvironmentName"/> is 'Development' using the entry assembly,
149150
/// adds the HostFiltering middleware,
150151
/// adds the ForwardedHeaders middleware if ASPNETCORE_FORWARDEDHEADERS_ENABLED=true,
151152
/// and enable IIS integration.

0 commit comments

Comments
 (0)