Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Does VS 2010 post build event support multiple lines?

I need to execute multiple commands in the VS postbuild event. Is this possible and how do I delimit the commands? Newline? Semicolon?

like image 219
Robin Rodricks Avatar asked Jan 28 '26 10:01

Robin Rodricks


1 Answers

Use a new line.

Easy enough to have simply tested it though.

From How to: Specify Build Events (C#) on MSDN:

When a project is built, pre-build events are added to a file that is named PreBuildEvent.bat and post-build events are added to a file that is named PostBuildEvent.bat. If you want to ensure error checking, add your own error-checking commands to the build steps.

As you can see, these go into batch files, so you need to use the same syntax as you would in a batch file.

like image 156
Oded Avatar answered Feb 01 '26 06:02

Oded



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!