如何在多个应用程序中管理一个配置文件

如何在多个应用程序中管理一个配置文件

问题描述:

我在单个项目中有多个应用程序所有这个项目应用程序我只想使用单个配置文件(在所有应用程序中只使用通用配置文件)。

所有应用程序仅使用单个配置文件操作

i have multiple application in single project all this project application i want use only single config file (work only common config file in all application).
all application operate with only single config file

您已将其标记为ASP.NET。所以我会考虑你在谈论一个网络应用程序。



每个网站都需要拥有它自己的web.config文件。如果一个网站中有多个应用程序,根文件夹中的一个web.config文件就可以了。但是如果你要创建多个网站,每个网站都需要拥有自己的配置文件。
You have tagged it ASP.NET. So I will consider you are talking about a web application.

Each website will need to have it's own web.config file. If you have multiple applications inside one website, one web.config file in the root folder is fine. But if you are creating multiple website, each will need to have it's own config file.