What happens to app.config in a referenced project

后端 未结 4 1827
盖世英雄少女心
盖世英雄少女心 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:49

    App.config is configuration, not application - so it's not saved into dll and it can't be displayed by reflector or decompiled.

    You have to configure Project B with settings for Project A (in web.config as it is web app).

    There is no mechanism to automagicaly configure external modules, unless they have coded default fall-back values.

提交回复
热议问题