How to avoid duplication of app.config with unit testing of Visual Studio 2008?

When I have one app.config in my main project, I always have to duplicate it in my test project. How to avoid this?

Refresh. I also asked a very similar and slightly complicated question.

+3
source share
2 answers

Add it as a link from one place. Select one of the projects like the one that has the real app.config and attach it to other projects.

Add → Existing item → Go to configuration file → add as link (down arrow in the Add button)

+7

, , configSource, . , .

appSettings "", .

+2

Source: https://habr.com/ru/post/1702311/


All Articles