I need to execute multiple commands in the VS postbuild event. Is this possible and how do I delimit the commands? Newline? Semicolon?
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With