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

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

    I had the same error with xcopy in connection with the Test Engine. I am using VisualStudio Professional 2013. By default Test -> Test Settings -> Keep Test Execution Engine Running seems to be the reason for my error code 4 with xcopy. Switching it off solved the problem. The execution engine seems to keep hold on some .dlls.

    0 讨论(0)
  • 2020-12-04 09:33

    Run VS in Administrator mode and it should work fine.

    0 讨论(0)
  • 2020-12-04 09:35

    I got this error because of the file was opened in another instance.

    when i closed the file and again re-build the solution, it was successfully copied.

    0 讨论(0)
提交回复
热议问题