Is it possible to change the Build Action of a file in pre-build events?
asp.net, c#, visual-studio
Solution
An other option would be to use the $(ConfigurationName) macro within the VisualStudio build events editor:
if $(ConfigurationName)=="Production" copy robots.txt destinationpath
Problem
I want a file (robots.txt) to only publish when I am using a certain build configuration. Is there a way to handle this in pre-build events?