Friday, February 26, 2016

Using T4 Templates in Visual Studio 2015

If you are planning on using T4 Templates in your projects, Microsoft has changed the names of the templates slightly from earlier versions such as Visual Studio 2010.

Now, when you attempt to add a new item to your project, you will have the following 2 options:

  • Runtime Text Template
  • Text Template

Selecting one of these templates will result in a file with a .tt extension.  

If you want to know the syntax for writing a Text Template then you will definitely want to check out this MSDN article:

No comments:

Post a Comment