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.
Thanks for a great tool, we use it a lot and find it very useful.
But we have two issues with it, that when I look back at the older versions of t4toolbox are in the product for a while now. It would be a great if you could fix it.
The first issue that the t4 tool box still not works nicely with the tangible t4 syntax highlighting. For me on a daily and solution basis I need to close my solution, disable t4toolbox, restart VS, enable t4toolbox restart VS, open solution to get the syntax highlighting to work.
The second issue is that the setting screen does not show the correct values for the options when looking at the registry the setting has been set correctly but the settings screen just shows the default values ( https://t4toolbox.codeplex.com/workitem/24427 ) I think this might relate to issue 1
I use VS2013 update 1 with resharper on a 64 bit windows 7 laptop.
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,