Execute T4 Templates when building your solution.
Note that this does not work for executing T4 templates outside project folders (solution items), but you can use <#+ Class Feature Blocks #> and <# Statement Blocks #> declared in those files.
Enable or disable TTExecuter by selecting
Choose to run after build via
Choose which templates to ignore via