I guess it is outdated documentation.
(我想这是过时的文档。)
With Core 3.0 you don't need to add anything special to template ASP project, it almost works out of the box. (使用Core 3.0,您无需为模板ASP项目添加任何特殊功能,它几乎可以立即使用。)
public class Startup
{
public Startup(IConfiguration configuration)
{
Configuration = configuration;
}
public IConfiguration Configuration { get; }
Configuration
is going to have values from appsettings.json overridden by secrets.json overridden by environment variables.
(Configuration
将具有来自appsettings.json的值,这些值被secrets.json覆盖,并被环境变量覆盖。)
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…