Most voted "t4" questions
Text Template Transformation Toolkit (commonly referred to as T4) is a template-based text generation structure included in Visual Studio. T4 source files are usually identified by the file extension ". tt".
Learn more…6 questions
Sort by count of
-
8
votes1
answer591
viewsChange the naming pattern of views that are generated by scaffold
I would like to change the nomenclature where scaffold generates views: Standard: Create.cshtml Delete.cshtml Details.cshtml Edit.cshtml Index.cshtml I want scaffolding to create that way:…
-
3
votes2
answers254
viewsScaffold MVC Template Editing. How to get project reference in Solution Folder?
I am editing the T4 templates from ASP.NET MVC’s Scaffold and I need to get some extra class information. At first, for example, of the attribute DisplayName class. I found some examples: var env =…
-
2
votes1
answer163
viewsConfigure Scaffold to generate classes
You can configure Scaffold to generate classes other than the default (Controllers and Views) ?
-
2
votes0
answers27
viewsSolutiondir in T4 Template
I’m trying to carry a Assembly in the template T4, but when trying to use the $(SolutionDir) my Assembly does not load, only works if I put the whole way. That’s how it works <#@ assembly…
-
1
votes1
answer55
viewsT4 to SQL . NET error
When trying to generate sql code based on edmx you are showing this error Severity Code Description Project File Line Suppression State Error Running Transformation: System.Nullreferenceexception:…
-
0
votes1
answer65
viewsAdd Action and Controller to Beginform’s Htmlhelper with T4
I need to add to my template in T4 the value of action and of controller, but I can’t understand how I can pass their names. Following example: CREATE.cs.T4 @using (Html.BeginForm("Create",…