texttemplate

Can T4 templates use the same library

I have a library that defines a class namespace ClassLibrary1 { public class Class1 { public static readonly int Rate = 5; } } In the same lib I add a tt file <#@ template debug="false" hostspecific="false" language="C#" #> <#@ output extension=".cs" #> <#@ import namespace="ClassLibrary1" #> <#@ assembly name="C...

Installing Subsonic - adding Text Templates does nothing...

I'm trying to start using Subsonic (v3). The brief installation instructions indicate that I must: add a reference to the DLL = Done edit Setting.ttinclude to use right connection string = Done; added appsettings to web.config add templates to project = Done, but nothing is generated; no errors and no code. The demo indicates that wh...

How can I specify T4 (Text Templates) to use C# 4.0, in VS2010?

I need to specify my T4 to use C# 4.0, to render my tt files? I tried using <#@ template language="C#v4.0" debug="true" #> But when I use a dynamic variable, like this dynamic x=10; Write(x.ToString()); I'm getting these errors Error 2 Compiling transformation: Predefined type 'Microsoft.CSharp.RuntimeBinder.CSharpSetMemberBind...

T4 tool for XCode

Hello folk, Does anything like the T4 text template generation tool of visual studio exist for XCode? Thanks for help, Enyra ...