When debugging I need to start an external program from the target directory of a build and am wondering if it can be accomplished using relative paths.
As a post-build event I have the following:
IF NOT "$(ConfigurationName)"=="Debug" GOTO End :CopyExecutable copy "$(SolutionDir)\Source\Lib\MyExecutable.exe" "$(TargetDir)" :End
I need to run MyExecutable.exe when I am debugging so in the debug tab for the project properties I set "Start external program" to MyExecutable.exe but get a failure when running the debug. It seems I need to put the full path for this to work.
Is there a way to do this using relative paths?