Command copy exited with code 4 when building - Visual Studio restart solves it

前端 未结 27 2314
被撕碎了的回忆
被撕碎了的回忆 2020-12-04 08:51

Every now and then when I build my solution here (with 7 projects in it) I get the dreaded \'Command copy exited with code 4\' error, in Visual Studio 2010 Premium ed.

27条回答
  •  無奈伤痛
    2020-12-04 09:10

    If you are running Windows 7 onward, you can try the new 'robocopy' command:

    robocopy "$(SolutionDir)Solution Items\References\*.dll" "$(TargetDir)"
    

    More information about robocopy can be found here.

提交回复
热议问题