Questions tagged [t4-toolbox]

For issues relating to the T4 Toolbox Visual Studio extension to extend the code generation functionality of T4 text templates.

T4 Toolbox is a Visual Studio extension that extends the code generation functionality of the T4 text templates. It allows to:

  • Generate multiple output files from a single text template
  • Automatically add output files to one or more projects and folders
  • Automatically add or check-out generated files from source control
  • Edit text templates in Visual Studio 2015 with syntax colorization, outlining, QuickInfo tooltips, error reporting and statement completion
29 questions
1
vote
0 answers

How to successfully run existing T4 templates in VS2015?

I am new to this T4 Templates. All i know is these templates will generate entity classes from a LINQ to SQL class model (.dbml file) We have this system which runs on Visual Studio 2010. The problem starts, when we migrate to Visual Studio 2015. I…
rbt
  • 11
  • 3
1
vote
0 answers

How to create toolbox same as the toolbox for workflow designer?

I'm trying to build a toolbox just same as the one for workflow designer. All the workflow activities/elements should be listed in 10 categories of activity designers (Control Flow, Flowchart, State Machine, Messaging, Runtime, Primitives,…
Ivan
  • 81
  • 2
  • 11
1
vote
2 answers

How do I modify a pre-built template?

I'm using the T4 toolbox's Linq to SQL model to generate code, and I'd like to add some serialization properties to the code that it generates. I'm not sure how to modify the generator to do this. Would I modify the actual .tt file that is installed…
Mike Pateras
  • 14,715
  • 30
  • 97
  • 137
1
vote
1 answer

T4 Toolbox problems

I downloaded and installed the latest version of the T4 Toolbox for VIsual Studio 2010, in an attempt to create LINQ business objects, but I'm having some troubles with it. First, I was getting errors saying it couldn't find T4Toolbox.tt and…
Mike Pateras
  • 14,715
  • 30
  • 97
  • 137
1
vote
2 answers

Invoking Text Transformation in VS Extension

I want to create a Visual Studio Item Template that generates an Item (for eg. custom .aspx page) in the solution by executing T4 Template while adding it to the solution. For this I am using this link :…
Mayur
  • 53
  • 1
  • 10
0
votes
1 answer

t4 toolbox - Preprocessed template - Dispose(bool)': no suitable method found to override

I have been using T4Toolbox with the custom tool 'TextTemplatingFileGenerator' and everything has been working great. Recently, I have been in the process of trying to start using preprocessed templates (i.e., with the TextTemplatingFilePreProcessor…
wrgorman
  • 1
  • 1
0
votes
0 answers

Adding some code to T4 to validate special characters

I want to validate each and every value that is being passed to database for special characters. Is it possible to have any method kind of thing in T4 achieve this rather than adding a static method and validating it or please do let me know if…
Vivekh
  • 4,141
  • 11
  • 57
  • 102
0
votes
1 answer

FileNotFoundException when transforming T4 Template

I am using an existing T4 Template that I last used about 6 months ago and I'm not aware of anything having changed. However I am not getting the following exception, when I save the template file: Errors were generated when initializing the…
openshac
  • 4,966
  • 5
  • 46
  • 77
0
votes
1 answer

How to remove comments created automatically from t4toolbox?

I am using t4toolbox extension (https://visualstudiogallery.msdn.microsoft.com/791817a4-eb9a-4000-9c85-972cc60fd5aa) to output js file. But I find some text block auto-generated in js files as: // // This file was generated by T4 code generator…
Kevin Auds
  • 174
  • 1
  • 4
  • 15
0
votes
1 answer

T4 Template for Mvc using Reflections

hey i am new to creating T4 Templates for MVC 4. i am stuck with this part of the code. i have a custom class and i want to get the properties of a different class. Eg: class name is WOM and the properties that i want to retrieve is from another…
0
votes
0 answers

Why is there a huge delay when my T4 template creates designer files?

I am using a T4 template with T4 Toolbox within Visual Studio 2012 to generate about 100 files and add them to the project. I have two templates, one of which outputs a .cs file, the other outputs a corresponding .designer.cs. Naming it this way…
shamp00
  • 11,106
  • 4
  • 38
  • 81
0
votes
1 answer

T4Toolbox no file extension generated

I am using T4 toolbox for cs file generation. But in result generates correct C# files but... without extension. What the problem? <#@ template language="C#" hostspecific="true" debug="True" #> <#@ output extension="txt" #> <#@ include…
alerya
  • 3,125
  • 3
  • 28
  • 50
0
votes
2 answers

Using T4 to update designated text blocks

I am using T4 templates and the T4 Toolbox to generate text. I would like to do partial updates based on regions. For instance, on the first pass everything would be generated, but if the file was updated again, only the code blocks in the…
Brian
  • 6,910
  • 8
  • 44
  • 82
-2
votes
1 answer

Using google API or other APIs for video chatting and store some information in my database

I wish to develop a video chat application using APIs like google Hangout API or tokBox or any other API, and with using these APIs, I also have some more requirements to be fulfilled. Requirements 1.Who talked with whom. 2.How much time did any…
1
2