use*_*255 5 c# testing unit-testing mstest visual-studio
我用
<Deployment>
<DeploymentItem filename="TestProject1\Config\" outputDirectory="TestConfig" /><br>
</Deployment>
Run Code Online (Sandbox Code Playgroud)
在Local.testsettings中将TestProject1\Config \下的所有文件复制到'TestRoot'\ TestConfig \,但它直接在Test'TestRoot'文件夹中复制文件.
我发现重启Visual Studio后它可以正常工作.重建解决方案或单击TestListEditor中的Refresh按钮将不包括DeploymentItem中outputDirectory属性的更改/设置....