I used to specify the application base path for the ConfigurationBuilder
like this:
public Startup(IApplicationEnvironment appEnv)
{
var configurationBuilder = new ConfigurationBuilder(appEnv.ApplicationBasePath)
.AddJsonFile("config.json")
.AddEnvironmentVariables();
Configuration = configurationBuilder.Build();
}
However, as of beta8, the constructor of ConfigurationBuilder
does not take an application base path argument anymore and it throws an exception now.
How can I specify the base path?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…