I have created multiple csdef files for different environments.
I wanted to copy correct csdef file to target directory using xcopy command in prebuild event.
xcopy /Y "$(ProjectDir)ServiceDefinition.$(ConfigurationName).csdef" "$(TargetDir)ServiceDefinition.csdef"
I am getiing error xcopy exited with code 2.