c# - What is going wrong when Visual Studio tells me "xcopy exited with code 4" -
i'm not familiar post-build events, i'm little confused what's going wrong program. when compiling in visual studio 2010, following:
the command "xcopy c:\users\me\path\foo.bar\library\dsoframer.ocx c:\users\me\path\foo.bar\bin\debug\ /y /e /d xcopy c:\users\me\path\foo.bar\applicationfiles c:\users\me\path\foo.bar\bin\debug\ /y /e /d xcopy c:\users\me\path\url\ c:\users\me\path\foo.bar\bin\debug\ /y /e /d rmdir /s /q c:\users\me\path\foo.bar\bin\debug\.gwt-tmp" exited code 4. the program appears run fine, despite error, don't want ignore issue , hope nothing bad happens. strangely, line started out single command (the first xcopy) continued compile project (fixing other problems, references) error message expanded larger , larger. idea going on?
edit: here postbuild events seem failing --
xcopy $(projectdir)library\dsoframer.ocx $(targetdir) /y /e /d xcopy $(projectdir)applicationfiles $(targetdir) /y /e /d xcopy $(solutiondir)com.myurl.gwt\www $(targetdir) /y /e /d rmdir /s /q $(targetdir).gwt-tmp
xcopy exit code 4 means "initialization error occurred. there not enough memory or disk space, or entered invalid drive name or invalid syntax on command line."
it looks visual studio supplying invalid arguments xcopy. check post-build event command via project properties > right click > build events > post build event.
note if $(projectdir) or similar macro terms have spaces in resulting paths when expanded, need wrapped in double quotes. example:
xcopy "$(projectdir)library\dsoframer.ocx" "$(targetdir)" /y /e /d1
Comments
Post a Comment