Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to run an exe on a post build event

Tags:

What is the correct script to run a certain exe file on a post build event?

like image 488
MichaelS Avatar asked Oct 09 '11 13:10

MichaelS


People also ask

How do I run a batch file in post build event?

If you go to the Properties page for your project, you should select the Build Events tab. You can type in the call to your batch file in the Post-build event command line text box. If you want to refer to the batch file using the paths included in the project or solution, you can click on the Edit Post-Build...

What is post build event command line?

Pre/Post build events are useful when we wish to perform some operation before/after a project is built. These operations are nothing but the Shell commands being used from the command line. A build event can be formed using a single, multiple, or conditional commands.

How do I debug a post build event in Visual Studio?

Another way is to check the bin\debug dir for 'PreBuildEvent. bat' or 'PostBuildEvent. bat' which are the file that Visual Studio creates and run during the build events, if there is an error the files remain in the output dir and you can run them manually and spot the error.


1 Answers

Just as you would run this .exe from command-line. So, specify your .exe with full path and enclose it in double-quotes if either path or executable name contain spaces.

like image 149
Sergey Kudriavtsev Avatar answered Oct 14 '22 12:10

Sergey Kudriavtsev