VWD 2010 - App.config for debug, staging and production in Class library

352 Views Asked by At

How come am I getting 3 files when creating a config file in web project in VWD, and in class library I get only one config file (App.config)?

I have a solution with 1 web project and 2 class libraries that requires 3 different config files for debug, staging and production.
how do I handle it in the class libraries?

Thanks

1

There are 1 best solutions below

2
On BEST ANSWER

you should really not care about this because the class library at runtime will not use its own app.config or the result of its compilation into classlibrary.edll.config.

At runtime all needed configuration for the class library will need to be present in the web.config because the .NET runtime will read from there ignoring the original app.config.