0

Is there a way with msBuild/Deploy to prevent a particular config file from getting deployed if it does not have a transform for the current build target?

I am currently using SlowCheetah to do my transforms.

Thanks! Chris

Chris Bartlett
  • 312
  • 1
  • 11

1 Answers1

0

In any file you want, click right button, then properties. Set build action to None.

Fabio Silva Lima
  • 704
  • 6
  • 14
  • Let me clarify, if I do not have a transform for a build configuration then I do not want that config file to be deployed, but if there is a transform for another build configuration that same config file needs to be deployed. I cannot simply exclude the file from all deployments as your suggestion says to do. – Chris Bartlett Jan 27 '17 at 22:28