c# - Is it possible to change the Build Action of a file in pre-build events? -


i want file (robots.txt) publish when using build configuration. there way handle in pre-build events?

an other option use $(configurationname) macro within visualstudio build events editor:

if $(configurationname)=="production" copy robots.txt destinationpath 

Comments