Build Events are sequences of shell commands that execute before and after the project builds.
Pyro supports pre-build events and post-build events.
The PreBuildEvent
and PostBuildEvent
elements have the following attributes:
Description
attribute can be used to clarify each event to the user. This description will also be logged in the build output.UseInBuild
attribute can be used to toggle whether the event is used.The Command
element does not have any attributes.
Event | Runs When |
---|---|
PRE | Immediately before compilation |
POST | Immediately after build success |
<PreBuildEvent Description="Pre-Build Event Example" UseInBuild="true">
<Command>echo Hi! I'm a pre-build command!</Command>
</PreBuildEvent>
<PostBuildEvent Description="Post-Build Event Example" UseInBuild="true">
<Command>echo Hi! I'm a post-build command!</Command>
</PostBuildEvent >