Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

T4 Template in VS 2015

How do I get T4 Template support in Visual Studio 2015?
In VS 2015 the file property does not allow to specify the *tt file to be marked and allow to run from context menu.
I am using VS 2015 CTP6.

like image 876
Ivan Farkas Avatar asked Nov 01 '22 09:11

Ivan Farkas


1 Answers

Tried VS2015 Ultimate CTP6 and T4 support is in (as well as debugging T4 which is nice). One specify TextTemplatingFileGenerator as Custom tool as before and when saving the .TT file it is executed.

There's a context menu called "Run Custom Tool" which seems to execute the .TT file as well.

like image 142
Just another metaprogrammer Avatar answered Jan 04 '23 15:01

Just another metaprogrammer