📌  相关文章
📜  在控制台应用程序中使用 appsettings.json - Javascript 代码示例

📅  最后修改于: 2022-03-11 15:03:05.629000             🧑  作者: Mango

代码示例1
All that’s required is to add the following NuGet packages and an appsettings.json file.

Microsoft.Extensions.Configuration
Microsoft.Extensions.Configuration.FileExtensions
Microsoft.Extensions.Configuration.Json

The appsettings.json files “Copy to Output Directory” property should also be set to “Copy if newer” so that the application is able to access it when published.