I'm trying to add a post build command to copy the .manifest file from the current directory to my 'bin' directory. When running the build, I get:
Running project post-build steps
copy myApp.exe.manifest ..\bin
Execution of 'copy myApp.exe.manifest ..\bin' in 'D:\Source\myApp' failed.
Anybody have any ideas?
The application is probably still running (not terminated properly) so the file is still exclusively locked.
I'd agree with that, except 'myApp.exe' is built as part of the build (i.e. it's not executed) and the '.manifest' should be fine regardless. If I run the command from cmd prompt right after the build process, it runs cleanly.
I should point out I'm using the latest nightly build.
Thanx!
Have you checked the trivial stuff (i.e. that the paths are correct)?
You attempt to copy
D:\Source\myApp\myApp.exe.manifest
to
D:\Source\bin
Is D:\Source\bin really your bin directory?
EDIT:
If it is not something trivial, then I recommend you go to www.sysinternals.com and get the filemon utility. With this, you can track all file/directory operations that Code::Blocks is attempting.
Run it and watch for a line that says "FAILED", then you know where the beef is.
'copy' is a builtin command. To use builtins, start your command with 'cmd /c', e.g.
cmd /c copy myApp.exe.manifest ..\bin
Quote from: mandrav on January 26, 2006, 08:07:17 AM
'copy' is a builtin command. To use builtins, start your command with 'cmd /c', e.g.
cmd /c copy myApp.exe.manifest ..\bin
Wow I'm glad to know that now. :lol:
I just figured I sucked at paths or something and gave up on my copy output files step. :o
That works perfectly, many thanx! :)