Simply click on a project, open the context menu and navigate to "Custom Build Rules ...". There are already two items added, you can use them as example. It's very easy, about one minute of work