我怎么可以指定输出目录,当我在testsettings创建DeploymentItem?这是很容易当你申请DeploymentItem属性方法或类(有一个特殊的构造函数的参数),但我不明白的方式,将其应用在testsettings(甚至用户界面不包含这样的事)。
How can I specify output directory when I create DeploymentItem in testsettings? It is easy when you apply DeploymentItem attribute to method or class (there is a special constructor parameter) but I don't see a way to apply it in testsettings (and even UI doesn't contain anything like this).
尝试编辑的 testrunconfig 的文件,无论是从VS或使用XML编辑器 - 右键点击并选择的开放并添加一行像这样的:
Try editing the testrunconfig file either from VS or using an XML editor - right-click and choose open with and add a line like this one:
<Deployment>
<DeploymentItem filename="rootdir\SomeDir\" outputDirectory="SomeDir" />