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

AutoT4MVC

Bennor McCarthy

|
20,998 installs
| (4) | Free
An extension for Visual Studio which automatically runs your T4MVC templates at build time and when you create/remove/rename/save a file that T4MVC cares about.
Download

What's this for?

There used to be a really sweet macro for Visual Studio that would automatically run T4MVC templates on build. Unfortunately, macro support has been removed from Visual Studio 2012+, so this is an extension that will do the same thing (and more).

T4MVC templates are run under the following conditions (all string comparisons are case-insensitive):

  • a project or solution containing the template is built
  • a file in a folder named "Controllers" is saved (in the same project)
  • the settings file "T4MVC.tt.settings.xml" (or "T4MVC.tt.settings.t4") is saved (in the same project)
  • a file is added/removed/renamed in a folder named "Assets", "Content", "Controllers", "CSS", "Images", "JS", "Scripts", "Styles" or "Views" (in the same project)

Note: Drag/drop in the Solution Explorer will not trigger the templates to re-run, as the added/removed events are not fired.

Chirpy and AutoTT do the similar things, but Chirpy is overkill if all you want is your T4MVC templates built and I think AutoTT requires configuration.

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

Note: This extension runs T4MVC templates only

If you are looking for an extension that will run any & all T4 templates (on build only), use AutoT4.

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft