Link to home
Start Free TrialLog in
Avatar of psdeepu545
psdeepu545

asked on

How to resolve this error

The command "xcopy "C:\Development\Audit\MAIN\SourceCode\WindowsClient\XXX.Audit.WindowsClient.Audit\bin\Debug\*.*" "C:\Development\Audit\MAIN\SourceCode\WindowsClient\Audit\bin\Debug\Modules" /E /Y
" exited with code 2.

Whwn i compile my WPF application i am getting this error which is not getting for other people compiling in their boxes.
Please help??
Avatar of lenordiste
lenordiste
Flag of France image

exit code 2 apparently means "The user pressed Ctrl+C to terminate xcopy." ... Which is weird since parameter Y is supposed to prevent user interaction. Do you have by any chance changed your build events? If so can you send them to us?

Just to take the step ahead, what you can try is edit your page build event and change it to something like this:
xcopy "$(SolutionDir)$(ProjectName)" "$(SolutionDir)$(ProjectName)$(OutDir)" /E /I /Y /D
let me know if you still get the same error code.
ASKER CERTIFIED SOLUTION
Avatar of lenordiste
lenordiste
Flag of France image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of psdeepu545
psdeepu545

ASKER

i copied that command and ranin command prompt. then it asked for directory of file. I selected file and its working from there.