There are some cases where I need to deploy and some cases where I should not.
For example, when a build is queued for remote agent i.e. using visual studio online
execute the DeploymentItem
attribute. But when a debug from visual studio i.e. build locally I do not wish to execute the DeploymentItem
.
Can I set condition like if .. else
on the DeploymentItem
attribute? If yes, please let me know how to. Do mention if any work around.
Some code just for reference:
[DeploymentItem(@"Mocks", "Mocks")]
public class CodedUITest
{
....
}