When debugging, I need to run an external program from the target build directory, and I wonder if it can be executed 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 on the debug tab for the project properties, I set "Run external program" in MyExecutable.exe, but I get a failure when starting debugging. It seems I need to put the full path for this.
Is there a way to do this using relative paths?
debugging visual-studio
Fadeproof
source share