To set up one or more commands for building, deploying, or other external commands, use the OS Commands tool. Here, you can define commands, their runtime environment, and key bindings for them. Input/output takes place within the tool's console area. Use Show Toolbox in the Options menu for a quick-clickable list of defined commands.
To configure a command to be run as a build before any debug sessions, use the Build Command field in Project Properties.