【问题标题】:the command xcopy exited with code 9009 visual studio 2017 [duplicate]命令 xcopy 以代码 9009 Visual Studio 2017 退出 [重复]
【发布时间】:2019-11-27 06:32:07
【问题描述】:

我从 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

【问题讨论】:

  • 代码9009是什么意思?
  • 我不知道可能是一些错误代码@jmcilhinney

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


【解决方案1】:

您应该尝试重新启动 Visual Stutio。为我工作。

也许你的路径不正确,应该是这样的:

C:\Program Files (x86)\Bad Vendor\Buggy Program;

或者只是缺少 DLL 文件。要查看,请在 CMD 中运行相同的命令行并查看输出。 DLL 很容易从这里下载:https://www.dll-files.com/

有关此线程的更多信息:Why does xcopy exit with code 9009 in Visual Studio post-build step?

【讨论】:

  • stackoverflow.com/questions/1988668/…。这对我有用,但如果我设置完整路径 C:\Windows\System32... 那么当我提出拉取请求时,我需要更改所有 xcopy 路径,这对我来说很困难@apm11
  • 所以它现在可以正常工作了吗?
【解决方案2】:

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

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2018-11-29
    • 1970-01-01
    • 2014-05-08
    • 1970-01-01
    • 1970-01-01
    • 2010-12-31
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多