App.config in Test Projects

Well, if you need a App.config file shared across several projects, I would simply “Add as Link” the original App.config file in each project.

Let’s say you have ProjectA with the original App.config. Then you have ProjectATest1 and ProjectATest2. In each of the TestX project:

  1. right click on the solution name in Visual Studio
  2. select “Add Existing Item”
  3. navigate to the ProjectA App.config and select it
  4. click in the “Add” button down arrow
  5. select “Add as Link”

It’ll create a App.config shortcut in each TestX project. If you change it, it will change everywhere.

Hope this helps.

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)