Skip to content

Commit 482730a

Browse files
authored
text fix: 'There' -> 'their' plus minor tweaks (#56132)
1 parent 4a3afe3 commit 482730a

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/DefaultBuilder/src/WebApplicationBuilder.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -246,9 +246,9 @@ private static void SetDefaultContentRoot(WebApplicationOptions options, Configu
246246
// Logic taken from https://github.com/dotnet/runtime/blob/dc5a6c8be1644915c14c4a464447b0d54e223a46/src/libraries/Microsoft.Extensions.Hosting/src/HostingHostBuilderExtensions.cs#L209-L227
247247

248248
// If we're running anywhere other than C:\Windows\system32, we default to using the CWD for the ContentRoot.
249-
// However, since many things like Windows services and MSIX installers have C:\Windows\system32 as there CWD which is not likely
250-
// to really be the home for things like appsettings.json, we skip changing the ContentRoot in that case. The non-"default" initial
251-
// value for ContentRoot is AppContext.BaseDirectory (e.g. the executable path) which probably makes more sense than the system32.
249+
// However, since many things like Windows services and MSIX installers have C:\Windows\system32 as their CWD, which is not likely
250+
// to be the home for things like appsettings.json, we skip changing the ContentRoot in that case. The non-"default" initial
251+
// value for ContentRoot is AppContext.BaseDirectory (e.g. the executable path) which probably makes more sense than system32.
252252

253253
// In my testing, both Environment.CurrentDirectory and Environment.SystemDirectory return the path without
254254
// any trailing directory separator characters. I'm not even sure the casing can ever be different from these APIs, but I think it makes sense to
@@ -472,7 +472,7 @@ private void ConfigureApplication(WebHostBuilderContext context, IApplicationBui
472472
// Remove the route builder to clean up the properties, we're done adding routes to the pipeline
473473
app.Properties.Remove(WebApplication.GlobalEndpointRouteBuilderKey);
474474

475-
// reset route builder if it existed, this is needed for StartupFilters
475+
// Reset route builder if it existed, this is needed for StartupFilters
476476
if (priorRouteBuilder is not null)
477477
{
478478
app.Properties[EndpointRouteBuilderKey] = priorRouteBuilder;

0 commit comments

Comments
 (0)