Reputation: 27833
I am trying to create a T4 template, but I am stuck at the very first stages. I can't get any output to be generated. Right now I have the most basic template
<#@ template language="C#" #>
<#@ output extension="cs" #>
Testing
When I save this file, nothing is generated. I then tried to right click on the .tt
file, and the context menu doesn't show a "Run Custom Tool" menu item, as it does when I right click T4MVC's .tt file.
What do I do to get output to be generated?
Upvotes: 1
Views: 407
Reputation: 27833
Aha, figured it out. I had to click on my .tt
file, open the properties, and set the CustomTool
property to TextTemplatingFileGenerator
.
Upvotes: 1