简体   繁体   English

如何在控制台应用程序中添加 appsettings.json

[英]How to add a appsettings.json in a console application

In want to add an appsettings.JSON file to my console application project.想要将 appsettings.JSON 文件添加到我的控制台应用程序项目中。 When I want to add a new file the appsettings.JSON template file doesn't appear.当我想添加一个新文件时,appsettings.JSON 模板文件不会出现。

在此处输入图像描述

Does anyone know how I can add a appsettings.JSON file to my console application?有谁知道我如何将 appsettings.JSON 文件添加到我的控制台应用程序?

Add it manually in root folder (appSettings.json) and include to your project.将其手动添加到根文件夹 (appSettings.json) 并包含到您的项目中。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 如何在控制台应用程序 (.net Core) 中将数据写入 appsettings.json? - How to write data to appsettings.json in a console application (.net Core)? 如何在 a.Net 6 控制台应用程序中读取 appsettings.json? - How can I read the appsettings.json in a .Net 6 console application? 如何使用 .Net 核心控制台应用程序从 appsettings.json 读取部分? - How to read a section from appsettings.json using .Net core console application? 如何在使用 .NET Core 的控制台应用程序中从 appsettings.json 获取值? - How to get values from appsettings.json in a console application using .NET Core? 如何在 asp.net 核心控制台应用程序中的 class 程序中的 appsettings.json 中获取价值 - How to get value from appsettings.json in Program class in asp.net core console application 添加链接的 appsettings.json - Add a linked appsettings.json 如何在控制台应用程序中以新格式(appsettings.json)处理配置 - How to deal with configuration in new format (appsettings.json) in a console app .NET 6 应用程序未读取链接的 appsettings.json - .NET 6 application is not reading linked appsettings.json .NET Core 3.1 从 appsettings.json 为控制台应用程序加载配置 - .NET Core 3.1 loading config from appsettings.json for console application 在 .NET 核心控制台应用程序中将 appsettings.json 设置放入 class 类型的 object 中 - Getting appsettings.json settings into an object of class type in .NET Core console application
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM