From 8b30efbe750663fa79146108f2b5f9d6bf0728de Mon Sep 17 00:00:00 2001 From: John Luo Date: Tue, 5 Sep 2017 12:54:00 -0700 Subject: [PATCH] Use chained configuration --- src/Microsoft.AspNetCore.Hosting/WebHostBuilder.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Microsoft.AspNetCore.Hosting/WebHostBuilder.cs b/src/Microsoft.AspNetCore.Hosting/WebHostBuilder.cs index 3092aa9263..e5bb97ebb7 100644 --- a/src/Microsoft.AspNetCore.Hosting/WebHostBuilder.cs +++ b/src/Microsoft.AspNetCore.Hosting/WebHostBuilder.cs @@ -232,7 +232,7 @@ namespace Microsoft.AspNetCore.Hosting var builder = new ConfigurationBuilder() .SetBasePath(_hostingEnvironment.ContentRootPath) - .AddInMemoryCollection(_config.AsEnumerable()); + .AddConfiguration(_config); foreach (var configureAppConfiguration in _configureAppConfigurationBuilderDelegates) {