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

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

    I faced the same issue in case of XCOPY after build is done. In my case the issue was happening because of READ-ONLY permissions set on folders.

    I added attrib -R command before XCOPY and it solved the issue.

    Hope it helps someone!

提交回复
热议问题