c# - 命令 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
解决方案
找不到“xcopy”可执行文件。检查 PATH 变量中的“C:\Windows\System32\” - 如果不存在,请将其添加到 PATH 的前面。
推荐阅读
- javascript - 使用 JSON 关联数组向多个元素添加事件监听器
- java - 用于存储具有不同搜索参数的对象的单个数据结构
- python - 枕头脚本导致图像失去饱和度/鲜艳度
- python - Python:从类返回变量
- physics - 球面碰撞解决
- javascript - 如何在字符串上使用过滤器功能
- python - 将熊猫导入我的 python 项目时,numpy 依赖项引发错误
- r - 更改 R 中列的数据类型
- airflow-scheduler - 气流日志文件异常
- amazon-web-services - 我需要在 Fargate 中设置 aws_autoscaling_group 吗?