I'm working on a game engine that stores content (audio files, config files, textures, etc.) in a Content subfolder in the project. Master files live in $(ProjectDir)/Content, and need to get copied to the individual target directories ("Debug/Content" and "Release/Content") whenever the master files are changed.
I'm using a post-build event that works pretty well:
XCOPY "$(ProjectDir)Content" "$(TargetDir)Content" /I /D /E /C /Y
Unfortunately it only works if a build & link happens - i.e. I have to "touch" some .cpp file to trigger it, otherwise VS never executes the post-build XCOPY command.
Is there a way to get it to always run a command on Build(F6) or Run(F5)? Or a better way to handle content files in the project maybe? Hoping to be able to tweak Content files quickly then run the game to preview.
This is in Visual Studio 2012 professional.