Friday, March 22, 2013

How To: Keep Test Items Deployment Structure

when using deployment items in tests we sometimes need to keep the stucture of test items as it appers in our local machine. by default the all the deployment items are copied to the same folder regardless the source location structure.

we can set the target destination by editing the "TestSettings" XML
all we need to do is update the DeploymentItem with outputDirectory attribute
 
here is an example for a folder:
<DeploymentItem filename="CoreSettings\" outputDirectory="CoreSettings\">

a small word of caution updating the XML will not show in the desginer until you reload the solution.


found at : http://stackoverflow.com/questions/10162436/visual-studio-2010-does-not-copy-folder-on-deployment-to-out-directory

No comments:

Post a Comment