What happens to app.config in a referenced project

后端 未结 4 1776
盖世英雄少女心
盖世英雄少女心 2021-02-19 07:43

Say I have 2 projects, where project A references project B. Project A is a web application project and project B is a class library.

The class library has an app.confi

4条回答
  •  有刺的猬
    2021-02-19 07:51

    You can add an app.config to a library project, but it is not used or included in any of the output.

    Configuration is meant to be done in the application - not in the library. So you need to put the configuration in question in the web.config of your web application, not in app.config of a library.

提交回复
热议问题