I download the latest version of Subsonic(3.0.0.3) but when I add the T4 templates in my solution in Visual studio 2008 SP1, the auto-generation don't work. If I right click on the template files also the "Run custom tools" is not present.
What I have to do to make visual studio able to generate code from T4 templates?
T4 templates don’t work for me in the Visual studio 2008 solution
subsonicsubsonic3t4
Related Topic
- R – Compile error using SubSonic ActiveRecord templates in Visual Web Developer Express
- Visual-studio – Visual Studio + Subsonic 3 + Multiple Projects + “transform all templates” problems
- How to refresh the SubSonic T4 Template generated code
- C# – Why does SubSonic’s ActiveRecord T4 template generate ActiveRecord1.cs and not ActiveRecord.cs
- Custom Scaffolding Templates in Visual Studio 2013
Best Answer
Check what type of project you are using.
T4 Templates don't run in "Web Site" projects (as opposed to "Web application" projects). If you're using a web site project, you must add a Code project as well, put your templates in there and reference that project in your website.