2013年6月13日 星期四

Getting Start with T4 Template

Two types of templates that we can add in our project:

1. Runtime Text Template

2. Text Template

image

Default TextTemplate content, <#@ output extension=”.txt” #> it will generate a text file with same name

image

Add some text in .tt file

image

Open up .txt file to see the output result

image

 

Right-click to see its property

image

Property, Custom Tool = TextTemplatingFileGenerator

image

沒有留言:

張貼留言