mercredi 15 février 2017

DeploymentItem copying Files a different location than in the testsettings config

We have some DeploymentItems defined to copy some dlls to be able to test locally. So far i thought the DeploymentItems tag would copy stuff to the bin folder, but i found out, that those dlls are copied to a TestResults folder in the solution and the whole unit testing takes place there. I want to get rid of the DeploymentItems tags, as they are written in ANY test class and i want to copy a nlog config there, too. I was thinking that:

[DeploymentItem(@"x86\SQLite.Interop.dll", "x86")]

in an unit test class would equal

<Deployment>
<DeploymentItem filename="x86\SQLite.Interop.dll" outputDirectory="x86"/>
</Deployment>

in the testsettings file.

But it appears, that i must have understood something wrong or maybe have overseen some settings.

Has anybody an idea, where i have made a mistake?

Aucun commentaire:

Enregistrer un commentaire