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!
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.
它可能不在您认为它正在运行的目录中运行。
尝试复制/ Y $(SolutionDir)$(ProjectName)\\ Resources *。* $(TargetDir)Resources \\
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.