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

前端 未结 27 2361
被撕碎了的回忆
被撕碎了的回忆 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:26

    I had the same problem. However, nothing worked for me. I solved the issue by adding

    exit 0
    

    to my code. The problem was that while I was doing copying of the files, sometimes the last file could not be found, and the bat returned a non-zero value.

    Hope this helps someone!

提交回复
热议问题