Click here to Skip to main content
14,332,889 members
Rate this:
Please Sign up or sign in to vote.
See more:
Hi there,

I am pretty new to T4 templates. I am seeking help to start creating a page using T4 templates.

It seems most of the t4 editors are paid versions. However, i found a tool which is indeed free ([^])

Now i am stuck in creating pages using T4 MVC. I mean i need a right approach to start creating the app. Do we utilize T4 for each and every views, controllers and models?. How we can use a single template(any sample would be helpful) to create multiple output files(view, controller and model) in mvc (or) one template for view,one for controller and one for model?

Any sample apps or tutorial to create a MVC app using t4 would be helpful. Thanks in advance.

Note: I am using MVC 4.0 , Razor view

Syed Shabeer
Updated 16-Aug-13 1:05am
Rate this:
Please Sign up or sign in to vote.

Solution 1

Try this[^]
You can use trial version of pluralsight.
Hope this helps
Andreas Gieriet 16-Aug-13 7:49am
This is not available to the public.
Jameel VM 16-Aug-13 8:10am
i think using trial version he can use it.
Rate this:
Please Sign up or sign in to vote.

Solution 2

For public accessible content, see T4 Tutorial: Creating your first code generator[^] and Code Generation and T4 Text Templates[^].

Have also a look at the T4 MVC specifig blog post T4 Templates: A Quick-Start Guide for ASP.NET MVC Developers[^]


This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100