tangible-t4-editor

How to create multiple output files from a single T4 template using Tangible Editor?

 ̄綄美尐妖づ 提交于 2019-12-18 16:52:35
问题 I tried to follow this tutorial: http://t4-editor.tangible-engineering.com/blog/how-to-generate-multiple-output-files-from-a-single-t4-template.html with visual studio 2015 (.Net 4.5) Sample project with error: http://www.filedropper.com/t4fail I created the Template1.tt with the following source: <#@ include file="TemplateFileManagerV2.1.ttinclude" #> <#@ Assembly Name="System.Core" #> <#@ Assembly Name="System.Windows.Forms" #> <#@ import namespace="System" #> <#@ import namespace="System

T4 template will not transform with build

[亡魂溺海] 提交于 2019-12-09 02:38:11
问题 I'm using VisualStudio Ultimate 2012 (Update 1) on Windows 7. I can get my T4 template to generate a file by: right click [tt file] | run Custom tool . That works great! (yay for me). It also works if I run the menu command: Build | Transform All T4 Templates . But I want automation! I run into a problem when I try to get the generated code file to be produced with every build -- which is my goal. I looked at this: T4 transformation and build order in Visual Studio this isn't what I want. It

T4 template will not transform with build

前提是你 提交于 2019-12-01 02:40:58
I'm using VisualStudio Ultimate 2012 (Update 1) on Windows 7. I can get my T4 template to generate a file by: right click [tt file] | run Custom tool . That works great! (yay for me). It also works if I run the menu command: Build | Transform All T4 Templates . But I want automation! I run into a problem when I try to get the generated code file to be produced with every build -- which is my goal. I looked at this: T4 transformation and build order in Visual Studio this isn't what I want. It discusses using a pre-build build event. I wanted it to be part of the build. and this: Is there a way

How to create multiple output files from a single T4 template using Tangible Editor?

寵の児 提交于 2019-11-30 14:46:33
I tried to follow this tutorial: http://t4-editor.tangible-engineering.com/blog/how-to-generate-multiple-output-files-from-a-single-t4-template.html with visual studio 2015 (.Net 4.5) Sample project with error: http://www.filedropper.com/t4fail I created the Template1.tt with the following source: <#@ include file="TemplateFileManagerV2.1.ttinclude" #> <#@ Assembly Name="System.Core" #> <#@ Assembly Name="System.Windows.Forms" #> <#@ import namespace="System" #> <#@ import namespace="System.IO" #> <#@ import namespace="System.Diagnostics" #> <#@ import namespace="System.Linq" #> <#@ import