Is it possible to share the web.config across multiple projects in a solution?(ASP.NET)

后端 未结 3 869
执笔经年
执笔经年 2020-12-02 02:01

I have a solution composed of a web application and multiple projects, is it possible to share the configuration in the web application across all the solution?

Than

3条回答
  •  旧巷少年郎
    2020-12-02 02:31

    No, it is not possible. A web.config file need to be placed at the root folder of each web site. You could have a common web.config file copied to the root of each site as a build step of the project so that at runtime ASP.NET can find it.

提交回复
热议问题