views:

20

answers:

1

Is there a way to preserve folder structure with MSTEST deployment?

I have a situation with some existing code where I have .config files in a subfolder (called "Configuration"). I can specify this folder using MSTEST deployment but, in it's infinite wisdom, MSTEST just copies the files from this folder to the run folder (TestResult\\Out), i.e. it does not create a subfolder called Configuration. This royally screws up the code and it fails. I don't really want to have to start using complicated pre-test scripts to create folders etc.

Any ideas gratefully received.

Matt

A: 

Hi,

I think I had the same problem...

My tests used a folder called xsd and I wanted to deploy the folder to the test \OUT directory. When I did this, the files inside the xsd folder were copied to the test \OUT directory, but I wanted the folder xsd into the test \OUT directory...

To solve this I read this.

I hope it helps.

Thanks.

Jorge.

Jorge