如何在控制台应用程序添加App.config文件控制台、应用程序、文件、如何在

2023-09-03 05:38:39 作者:待到花开静谧时

我要存储的连接字符串,并在app.config文件中的一些参数,我们为Windows aplication generaly做,但我找不到app.config文件的控制台应用程序。所以,我应该如何使用这个文件,如何添加这个文件或者有一些其他的工作arroud为相同的功能。我在控制台应用程序中工作

I want to store the connection string and some parameters in app.config file which we generaly do for windows aplication but I can't find app.config file for console application. So how should I use this file, how to add this file or there is some other work arroud for the same functionality. I am working in console application

推荐答案

右键单击应用程序 - >转到添加 - >您将看到确切的画面我都十分这里 - >选择的应用程序配置文件。

Right click on application->Go to Add->you will see the exact picture What i have attached here->Pick the Application Config File.