I have a web project and an automated unit test project.
The web.config file of the web project being tested contains a lot of settings that are also needed for the automated tests to run. So I need the test project to read what's in the web.config file.
I know that I could create an app.config file for the unit test project, manually copy the contents of the web.config file into it and run the tests. However, I want to avoid the overhead of having to have a unit test project config file and update it every time I change the source project's web.config. I just want to include the web.config as a deployment item for the test project when it runs and have it pick up the web.config file and read it. Currently it's not doing that: for config, it's looking for a the app.config file to be renamed as "MyTestProject.dll.config".
Go to the complete details ...