8 references to ContentRootKey
Microsoft.AspNetCore (6)
ConfigureWebHostBuilder.cs (5)
42var previousContentRootConfig = _configuration[WebHostDefaults.ContentRootKey]; 64else if (!string.Equals(previousContentRootConfig, _configuration[WebHostDefaults.ContentRootKey], StringComparison.OrdinalIgnoreCase) 65&& !string.Equals(previousContentRoot, HostingPathResolver.ResolvePath(_configuration[WebHostDefaults.ContentRootKey]), StringComparison.OrdinalIgnoreCase)) 68throw new NotSupportedException($"The content root changed from \"{previousContentRoot}\" to \"{HostingPathResolver.ResolvePath(_configuration[WebHostDefaults.ContentRootKey])}\". Changing the host configuration using WebApplicationBuilder.WebHost is not supported. Use WebApplication.CreateBuilder(WebApplicationOptions) instead."); 137else if (string.Equals(key, WebHostDefaults.ContentRootKey, StringComparison.OrdinalIgnoreCase) &&
WebHost.cs (1)
163if (string.IsNullOrEmpty(builder.GetSetting(WebHostDefaults.ContentRootKey)))
Microsoft.AspNetCore.Hosting (1)
Internal\WebHostOptions.cs (1)
26ContentRootPath = environment?.ContentRootPath ?? GetConfig(WebHostDefaults.ContentRootKey);
Microsoft.AspNetCore.Hosting.Abstractions (1)
HostingAbstractionsWebHostBuilderExtensions.cs (1)
103return hostBuilder.UseSetting(WebHostDefaults.ContentRootKey, contentRoot);