Help, my MSTest DeploymentItem doesn't get deployed!
1 min read
1 min read
[TestMethod]What may happen though is that despite defining this attribute, your files won't get copied to the deployment. If that's the case you have to make sure that you set the "Copy to Output Folder" setting to "Copy Always". This is kind of strange since by defining the DeploymentItem attribute one would imagine to have it already copied automatically. A bit of a messy implementation...
[DeploymentItem(@"files\somefolder\", "optionalOutputFolder")]
[DeploymentItem(@"files\someOtherFolder\", "againAnOptionalOutputFolder")]
public void MyDummyTest()
{
...
}