Search code examples
visual-studio-2012command-linepre-build-event

Testing Pre-Built Command Event


Is there anyway I can test pre-built event command line, from visual studio command prompt or from any other tool? I have this event

REM C:\Program Files\TortoiseSVN\bin\SubWCRev.exe $(SolutionDir). $(SolutionDir)\mynamespace\Release.tmpl $(SolutionDir)\mynamespace\Release.txt

But it does not seems to work (Nothing happens). I also tried to execute this command from simple comand prompt, still without success. any help would be great.

However, if I remove the REM from the front, I get the following error message (as mentioned by @Giorgi):

The command "C:\Program Files\TortoiseSVN\bin\SubWCRev.exe "C:\Projects\GUI\RTS\Development." "C:\Projects\GUI\RTS\Development\mynamespace\Release.tmpl" "C:\Projects\GUI\RTS\Development\mynamespace\Release.txt"" exited with code 9009.


Solution

  • You have REM there. It means that the line is a comment. Try deleting REM.

    Change

    REM C:\Program Files\TortoiseSVN\bin\SubWCRev.exe $(SolutionDir). $(SolutionDir)\mynamespace\Release.tmpl $(SolutionDir)\mynamespace\Release.txt
    

    to

    C:\Program Files\TortoiseSVN\bin\SubWCRev.exe $(SolutionDir). $(SolutionDir)\mynamespace\Release.tmpl $(SolutionDir)\mynamespace\Release.txt