Extends Text Templates with syntax colorization, error reporting, outlining, QuickInfo tooltips, statement completion, generation of multiple output files with source control integration, support for template parameters in Solution Explorer properties and more.
The original T4 toolbox was open source, and located at codeplex.
Are you considering updating the source with this new version, or better still adding this version to github?
Will it remain closed?
I am really hoping that you open it up again... Either way it's a useful plugin.
This extension may serve a different purpose then what I have in mind, but upon installing I expected to be able to edit *.t4 files with syntax highlighting. Am I missing something? Are there plans to support *.cs.t4 files?
In previous version of T4Toolbox (v10) I used custom transformation property and access it as follow:
Now the TransformationContext now implements the Singleton pattern, so I should be able to access it as follow
but now received the following error:
Compiling transformation: 'Microsoft.VisualStudio.TextTemplating.TextTransformation' does not contain a definition for 'MyProperty' and no extension method 'MyProperty' accepting a first argument of type 'Microsoft.VisualStudio.TextTemplating.TextTransformation' could be found (are you missing a using directive or an assembly reference?)
Nemak, You're right; this was lost in the upgrade from v10 to v11. As an alternative, you can use the Session property. It is a dictionary shared by the transformation (script) and all of the templates. In other words, in your main transformation you can do this:
this.Session["MyProperty"] = myValue;
and in any of the templates it creates you will be able to access this value the same way:
var myValue = this.Session["MyProperty"];
Hope this helps,