首页 > 解决方案 > 命令 xcopy 以代码 9009 Visual Studio 2017 退出

问题描述

我从 git 设置项目。但是当我构建解决方案时,我收到一个错误“命令 xcopy ... 以代码 9009 退出。我没有找到任何解决方案。以下是 Post build event 命令行中默认的命令:-

xcopy "$(ProjectDir)bin\$(TargetFileName)" "$(SolutionDir)..\Educate\bin\" /s /i /y xcopy "$(ProjectDir)bin\$(TargetFileName)" "$(SolutionDir) ..\PlayList\bin\" /s /i /y xcopy "$(ProjectDir)bin\$(TargetFileName)" "$(SolutionDir)..\EducateFHCRC\FredHutch\FredHutch\bin\" /s /i /y xcopy "$(ProjectDir)bin\$(TargetFileName)" "$(SolutionDir)..\EducateFHCRC\FredHutch\FredHutch.Domain\bin\" /s /i /y

这是完整的错误:-

Error       The command "xcopy "D:\Projects\Educate\EmpowerLearn\EducateAssessment\bin\EducateAssessment.dll" "D:\Projects\Educate\EmpowerLearn\EducateAssessment\..\Educate\bin\" /s /i /y

xcopy "D:\Projects\Educate\EmpowerLearn\EducateAssessment\bin\EducateAssessment.dll" "D:\Projects\Educate\EmpowerLearn\EducateAssessment..\PlayList\bin\" /s /i /y xcopy "D:\Projects \Educate\EmpowerLearn\EducateAssessment\bin\EducateAssessment.dll" "D:\Projects\Educate\EmpowerLearn\EducateAssessment..\EducateFHCRC\FredHutch\FredHutch\bin\" /s /i /y xcopy "D:\Projects\Educate \EmpowerLearn\EducateAssessment\bin\EducateAssessment.dll" "D:\Projects\Educate\EmpowerLearn\EducateAssessment..\EducateFHCRC\FredHutch\FredHutch.Domain\bin\" /s /i /y" 退出,代码为 9009。EducateAssessment

标签: c#asp.net.netvb.net

解决方案


找不到“xcopy”可执行文件。检查 PATH 变量中的“C:\Windows\System32\” - 如果不存在,请将其添加到 PATH 的前面。


推荐阅读