T4 Templates files have a .tt extension and are the input to VS2010’s code generation engine for automatically generating text files with all sorts of content (C# code, SQL Commands, XAML, HTML, XML etc). In this post, we will briefly see how we can create and use them and examine some very useful scenarios on situations where they may come in handy. Before starting with the tutorial it is recommended that you download the T4 Editor . It provides syntax highlighting when editing a .tt file from within
Διαβάστε περισσότερα »