How to check for an existing executable before running it in a post-build event in VS2008?
Posted
by wtaniguchi
on Stack Overflow
See other posts from Stack Overflow
or by wtaniguchi
Published on 2010-03-11T21:10:11Z
Indexed on
2010/03/12
18:37 UTC
Read the original article
Hit count: 463
Hey all,
I'm trying to use SubWCRev to get the current revision number of our SVN repository and put it in a file so I can show it in the UI.
As I'm working with a Web App, I use the following post build command line:
"SubWCRev.exe" "$(SolutionDir)." "$(ProjectDir)Content\js\revnumber.js.tpl" "$(ProjectDir)Content\js\revnumber.js"
It works great, but now I want to make sure I have SubWCRev before running it, so I can skip this post build if a fellow developer is not running TortoiseSVN.
I tried a few batch codes here, but couldn't figure this out.
Any ideas?
Thanks!
© Stack Overflow or respective owner