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.config file where some settings are stored. When I compile project A, projectB.dll is created in the bin folder.
What happens to the contents of the app.config file when the web application is deployed? Are the settings compiled into ProjectB.dll?
Is it possible to retrieve the contents of the app.config using a tool like reflector or ILSpy?
You can add an
app.configto 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.