I have a solution with 2 projects; lets call them project A (base project) and project B (used for some testing of the methods in project A) In project A, I use App.config to store some configuration options like a connectionstring and appsettings.
When I set project B as startup project and I run a method from A, the program looks for the configuration in app.config of B (instead of A), where these configoptions do not exist. This results in a "System.NullReferenceException".
(When I set A as my startupproject, and I access the method from within A, it works fine) How can I solve this? I want my project A to always use its own app.config file.