there are a couple of Visual studio plugins which will autorun the template when you do a build. I use AutoT4MVC
However it sounds like your solution has an issue with the template, youcould try right clicking and excluding the file from the project and then right click and add it back? (this requires you to set the option "show all files"). Alternatively you could uninstall t4mvc and then readd it. Also the setting in tools/options/text templating should allow you to see that dialog if its gone missing. Hope this helps