Skip to content
| Marketplace
Sign in
Visual Studio>Tools>AutoT4
AutoT4

AutoT4

Bennor McCarthy

|
9,282 installs
| (10) | Free
A zero-configuration extension for Visual Studio 2012+ which automatically runs your T4 templates at build time.
Download

What's this for?

This is a Visual Studio extension which automatically triggers all T4 templates in your solution (or selected project for project-only builds) to be re-run before build.

The source is available on github, which is also a good place to raise any issues you have with the extension.

If you are looking for a T4MVC specific runner which only runs your T4MVC templates, you'll want to use AutoT4MVC instead (it's way smarter).

 

Configuration

By default, the extension will run all of your T4 templates on build. If that's what you want, great -- zero configuration required.

If you want to customize the behaviour, you have two options:

  • Change the default behaviour from the AutoT4 section of the Visual Studio options dialog.
  • Override the default behaviour for a specific template by changing the Run on build setting in the Properties windowfor any .tt file in your solution. Whatever you specify here will take precedence over the default in the options dialog (unless you select "Default").
  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft