Search code examples
c#visual-web-developer-2010

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


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


Solution

  • 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.