内容目录
public IConfigurationRoot Config { get; } = new ConfigurationBuilder()
.SetBasePath(System.IO.Path.Combine(System.IO.Directory.GetCurrentDirectory(), "Options"))
.AddJsonFile("SystemConfig.json", optional: true, reloadOnChange: true)
.Build();
This method can read the configuration from the JSON file.
It can only read and cannot write.
文章评论