views:

114

answers:

0

I need to copy all files and subfolders from a specified path to my testrun Out folder. I only want this to happen for certain tests (so, no global solution, like the Deployment section in the Testrunconfig file). I have a solution structure like this

Solution\
    Project\
    Project.Test\
    Resources\
        FolderA\
        FolderB\

I tried specifying the parent folder using the DeploymentItem attribute. The Out folder after the test run has all files directly under Resources, but not FolderA or FolderB.

[DeploymentItem("Resources\\")]

I also tried different kinds of wildcards, like

[DeploymentItem("Resources\\*")]