Just needed some clarity on this
I have a 2 projects - Project A and Project B (class library windows projects)
Project B is referenced in Project A
Both projects has app.config files
Now the problem
A value in appsettings of ProjectB is not accessible using ConfigurationManager.AppSe
ttings. Note that the code that is trying to access this value is writen in a class within project B itself. When I debug, I notice that "ConfigurationManager.AppS
ettings" returns only the keys from project A.
The reason why I have this is because I wanted my Project B to be independent of project A settings. Project B is used by multiple projects and I wanted the flexibility of the the other projects to have the facility to set some parameters depending on the requirements.
Is there a way to say which config file to be used in such scenarios or am should I be using some other code to access appsetting from project B.
Start Free Trial