Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Does VS 2010 Express edition support T4 preprocessed templates?

Just installed 2010 Express Edition and I cannot see Preprocess t4 template as an option. Is it not supported in 2010 Express?

like image 772
epitka Avatar asked Jul 22 '10 13:07

epitka


People also ask

What are T4 templates in Entity Framework?

T4 templates in entity framework are used to generate C# or VB entity classes from EDMX files. Visual Studio 2013 or 2012 provides two templates- EntityObject Generator and DBContext Generator for creating C# or VB entity classes. The additional templates are also available for download.


1 Answers

Unfortunately the item templates got a little misconfigured in our setup program for VS Express editions and are not in the right place on disk, so don't show up in the Add New Item dialog.

In VS 2010 Express Editions, we do support T4 templates of both regular and preprocessed kinds, however you'll have to set them up yourself. If you add a regular text file, then rename its extension to '.tt", it should automatically get the regular T4 custom tool set up in the property grid for the file.

For preprocessed templates, you should set the custom tool manually to 'TextTemplatingFilePreprocessor'.

like image 77
GarethJ Avatar answered Oct 21 '22 14:10

GarethJ