t4
How to use custom sections in app.config from a t4 template
I am trying to access a custom section in app.config file from a t4 template in VS2010, but the assembly that defines the custom section cannot be loaded.[详细]
2023-02-06 20:04 分类:问答Automatically getting all assembly references in T4
Is it possible to have a T4 template that automatically picks up all assembly references (and their dependencies) of the parent project?[详细]
2023-02-06 12:23 分类:问答Generating more than one output file from a template
Hi I am writing a custom template generator for my xml file. I was wondering if you guys can tell me a way I can generate more than one output file from the template under the same template.[详细]
2023-02-06 11:14 分类:问答How to use T4 to generate two files at the same time from one template?
I am having a case in which I need to generate 开发者_高级运维two CSharp code files with pretty the same code but different namespace of the input and output types of the methods. In fact each file is[详细]
2023-02-06 05:39 分类:问答visual studio item template - find out current folder
When you right click on a folder and \'add a new item开发者_StackOverflow\', is there a way to find out the current folder? I\'m trying to display a default name for my custom item template in the add[详细]
2023-02-05 06:41 分类:问答How do you make a t4 template installable in visual studio?
I have written a couple of t4 templates for EF4, I want to get other developers to use them, so id like to make them installable in VS so that people cna jsut add them to their projects.[详细]
2023-02-05 01:06 分类:问答T4 copy enum between projects
I have two projects in my solution. I need to copy the values from enum1 in Project1 to enum2 in project2. Is this possible using T4 ?[详细]
2023-02-04 19:18 分类:问答Inheriting a T4 template from a custom base class, providing Visual Studio 2010 SDK is not installed
I have a system of T4 templates — executed at run-time, not at compile-time — which generate the skeletons of many classes in my app. All these templates reside in a generator tool which is used fro[详细]
2023-02-04 15:16 分类:问答T4 referenced assembly blocks build
In Visual Studio 2010 I have the following project layout: Solution project A class C class D project B T4 template[详细]
2023-02-04 14:49 分类:问答Output Path for Shared T4 Template
How can I specif开发者_JS百科y the output path of a T4 template? When I add my T4 template using \"Add as Link\" to my project from $TemplatePath$, it generates the output file in $TemplatePath$, not[详细]
2023-02-04 09:00 分类:问答