Reacting to Configuration API update

This commit is contained in:
John Luo 2016-04-04 12:18:35 -07:00
parent 52e5ccdac7
commit cc69cacaea
2 changed files with 4 additions and 2 deletions

View File

@ -91,7 +91,8 @@ namespace Microsoft.AspNetCore.Server.IISIntegration.Tools
}
var builder = new ConfigurationBuilder()
.AddJsonFile(Path.Combine(applicationBasePath, "hosting.json"), optional: true);
.SetBasePath(applicationBasePath)
.AddJsonFile("hosting.json", optional: true);
var webroot = builder.Build()["webroot"];

View File

@ -91,7 +91,8 @@ namespace Microsoft.AspNetCore.Tools.PublishIIS
}
var builder = new ConfigurationBuilder()
.AddJsonFile(Path.Combine(applicationBasePath, "hosting.json"), optional: true);
.SetBasePath(applicationBasePath)
.AddJsonFile("hosting.json", optional: true);
var webroot = builder.Build()["webroot"];