What happens to app.config in a referenced project

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

    App.config of your class library B becomes irrelevant. If you want to use data from there you should copy all the stuff to app.config of your parent application (in your case web.config). You will then be able to access contents of it using ConfigurationManager both from projects A and B

提交回复
热议问题