views:

330

answers:

3

Hi, what's wrong with this post-build event? I want to copy the entire contents of a resources folder over to the target directory while maintaining the but it keeps exiting with code 1:

copy $(SolutionDir)$(ProjectName)\Resources*.* $(TargetDir)Resources\

Thanks in advance!

A: 

It's probably not running from the directory you think it's running from.

chris
+1  A: 

Try

xcopy /Y $(ProjectDir)Resources\*.* $(TargetDir)Resources\

That is probably the most robust as it will also create the directory for you if it doesn't already exist.

adrianbanks
Thanks everyone; I'll try this one out...forgot all about xcopy I'll post back if it works. Just got engulfed in a bigger fire :)
A: 

Try copy /Y $(SolutionDir)$(ProjectName)\Resources*.* $(TargetDir)Resources\

Vasu Balakrishnan