Why does xcopy exit with code 9009 in Visual Studi

2019-01-18 01:36发布

I am getting the following error, which I don't understand. Any suggestions?

Error 1 The command "xcopy "D:\Users\johndoe\Documents\Visual Studio 2008\Projects\MyProject\MyProject.Modules.Ribbon\bin\Debug\MyProject.Modules.Ribbon.dll" "D:\Users\johndoe\Documents\Visual Studio 2008\Projects\MyProject\MyProject\bin\Debug\Modules\" /Y" exited with code 9009. MyProject.Modules.Ribbon

9条回答
Lonely孤独者°
2楼-- · 2019-01-18 02:10

Restart Visual Studio. Worked for me

查看更多
再贱就再见
3楼-- · 2019-01-18 02:10

I encounted this error on the TeamCity build server. I finally resolved it after checking the build log and found:

"'xcopy' is not recognized as an internal or external command."

I then changed my statement to:

C:\Windows\System32\xcopy "$(ProjectDir)config\Web.config.$(ConfigurationName)" "$(ProjectDir)Web.config" /Y/R

查看更多
爱情/是我丢掉的垃圾
4楼-- · 2019-01-18 02:11

In my case: i fix it do this: Add value %SystemRoot%\system32 to Environmental variable's Path variable,and restart my computer,rebuild the solution,it goes fine.

查看更多
登录 后发表回答