Can't get app.config to work for test projects

I've got a test project that I need to get configuration for from an app.config.
I'm using VS2005 RC1.
There is an app.config file in the test project and it is set as "Copy to Output Folder = true". When the project gets compiled it does put app.config into the output folder, but it isn't renamed.
The AppDomain that the test is running in is looking for a config file in TestResults\<TestRunName>\Out\vstesthost.exe.config
Help!
[461 byte] By [MichaelLuke] at [2007-12-17]
# 1
Michael,

You can add your config file as deployment item (either through test run configuration UI if this config file is used for all your tests, or add it to individual test case if it only applies to single test). That way the config file would be deployed to the deployment directory (TestResults\<TestRunName>\Out\) together with the test storage.

Thanks,
James

JamesSu at 2007-9-9 > top of Msdn Tech,Visual Studio Team System,Visual Studio Team System - Web and Load Testing...
# 2
It does not need to be renamed.

post beta2 -- which is what you are running -- you dont need to copy to output folder. Just have an app.config on the test project, and we will do the magic, is this not what is happening?

dhoptonMSFT at 2007-9-9 > top of Msdn Tech,Visual Studio Team System,Visual Studio Team System - Web and Load Testing...
# 3
dhopton MSFT wrote:
It does not need to be renamed.<br /><br />post beta2 -- which is what you are running -- you dont need to copy to output folder. Just have an app.config on the test project, and we will do the magic, is this not what is happening?

I'm unable to explain this.
I've just tried the tests again this morning, without making any changes (or even closing VS 2005) and the config file is now getting renamed and moved to the output folder!
I've double-checked the \Out folder for the tests I ran yesterday afternoon, and the config file isn't there for those tests.
Weird.
MichaelLuke at 2007-9-9 > top of Msdn Tech,Visual Studio Team System,Visual Studio Team System - Web and Load Testing...

Visual Studio Team System

Site Classified