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

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

    I crossed the same error, but it is not due to the file is locked, but the file is missing.

    The reason why VS tried to copy an not existing file, is because of the Post-build event command.

    After I cleared that, problem solved.

    UPDATE:

    As @rhughes commented:

    The real issue is how to get the command here to work, rather than to remove it.

    and he is absolutely right.

    enter image description here

提交回复
热议问题