Creating (DSL Tools) code generators with T4 Editor

 
T4 is the Text Templating Transformation Toolkit, a text transformation technology Microsoft created to make code generation easier. For example, it is such kind of technology that makes it possible for the DSL Tools to transform visual models into artifacts (code, xml files, etc.).
 
Since Visual Studio 2008, T4 is pre-installed on all Visual Studio installations, so that you don’t need the SDK anymore to use it. This means that many people are creating some interesting T4 stuff even outside of the DSL Tools world, as GarethJ points out in some of his recent blog posts.
 
To improve your T4 editing experience, T4 Editor is definitively recommended! It provides many vital editor features, such as syntax coloring and IntelliSense, for enabling you to create your code generator in a more productive way. Otherwise you’ll be dealing with T4 templates as if you were using Notepad!
 

 
I’ve downloaded the T4 Editor version for VS08 Beta 2 and was able to confirm that it runs without any issues in VS08 RTM. However, in order to ensure that both VS regular and experimental hives (registry areas) will be able to see the tool, run the following commands as VS 08 Command Prompt after installing T4 Editor:
 
To update the VS regular hive with the installed packages:
C:\Program Files (x86)\Microsoft Visual Studio 2008 SDK\VisualStudioIntegration\Tools\Bin>devenv /setup
 
To clean the VS experimental hive by copying the regular hive onto it:
C:\Program Files (x86)\Microsoft Visual Studio 2008 SDK\VisualStudioIntegration\Tools\Bin>vsregex GetOrig 9.0 Exp RANU
 
To update the VS experimental hive with the installed packages:
C:\Program Files (x86)\Microsoft Visual Studio 2008 SDK\VisualStudioIntegration\Tools\Bin>devenv /ranu /rootsuffix Exp /setup
 
Notice all of the newly introduced "ranu" stuff (ran as normal user). This is a new feature brought by VS08: it is not necessary to have administrative privileges to compile, execute, or debug a Domain-Specific Language Tools solution. For more information on DSL Tools news for VS08, check this link.
 
[]s
— AFurtado
 
The statements or testimonies I offer in this post represent my own personal views.
I am speaking for myself and not on behalf of my employer, Microsoft Corporation.
This entry was posted in Software Engineering. Bookmark the permalink.

26 Responses to Creating (DSL Tools) code generators with T4 Editor

  1. Tim says:

    There is also a nice How-Do-I video on generating from DSLs with T4 here:http://www.youtube.com/watch?v=VHPYfH1vVhg&hl=de

  2. Alex says:

    http://www.hootoo.com/65w-gateway-6020gz-laptop-ac-power-adapter-2prong-p-8094.htmlhttp://www.hootoo.com/65w-original-gateway-6020gz-laptop-ac-power-adapter-p-6325.htmlhttp://www.hootoo.com/65w-compaq-presario-v2000-laptop-ac-adapter-185v-35a-p-658.htmlhttp://www.hootoo.com/65w-original-compaq-presario-v2000-laptop-ac-adapter-p-7433.htmlhttp://www.hootoo.com/65w-dell-inspiron-e1505-laptop-ac-adapter-195v-334a-p-2568.htmlhttp://www.hootoo.com/90w-dell-inspiron-e1505-laptop-ac-adapter-195v-462a-p-522.htmlhttp://www.hootoo.com/dell-laptop-ac-adapter-19v-316a-pn-adp60nh-p-9940.htmlhttp://www.hootoo.com/dell-laptop-ac-adapter-19v-316a-pn-adp60nh-p-9940.htmlhttp://www.hootoo.com/70w-dell-inspiron-2600-series-laptop-car-charger-dc-adapter-pa6-p-498.htmlhttp://www.hootoo.com/dell-inspiron-2600-series-laptop-ac-adapter-pa6-p-408.htmlhttp://www.hootoo.com/141-inchs-ltn141w3l01-laptop-lcd-panel-screen-p-9490.htmlhttp://www.hootoo.com/65w-toshiba-pa3468u1aca-laptop-ac-adapter-19v-342a-p-10601.htmlhttp://www.hootoo.com/75w-toshiba-pa3468u1aca-laptop-ac-adapter-19v-395a-p-10398.htmlhttp://www.hootoo.com/gateway-pa165002-laptop-ac-power-adapter-19v-342a-p-6404.htmlhttp://www.hootoo.com/75w-original-toshiba-pa3201u1aca-laptop-ac-power-adapter-p-8969.htmlhttp://www.hootoo.com/75w-toshiba-pa3201u1aca-laptop-ac-power-adapter-p-6621.htmlhttp://www.hootoo.com/original-toshiba-pa3201u1aca-laptop-ac-adapter-60w-p-10783.htmlhttp://www.hootoo.com/75w-original-toshiba-pa3469u1aca-laptop-ac-power-adapter-p-8974.htmlhttp://www.hootoo.com/75w-toshiba-pa3469u1aca-laptop-ac-power-adapter-p-6613.htmlhttp://www.hootoo.com/65w-hp-239427003-laptop-ac-power-adapter-185v-35a-p-10325.htmlhttp://www.hootoo.com/65w-hp-laptop-ac-adapter-239427001-239427003-185v-35a-p-1189.htmlhttp://www.hootoo.com/90w-hp-239427003-laptop-ac-power-adapter-p-4837.htmlhttp://www.hootoo.com/65w-hp-laptop-ac-adapter-239704001-239705001-185v-35a-p-1190.htmlhttp://www.hootoo.com/65w-dell-inspiron-8600-laptop-ac-adapter-195v-334a-p-907.htmlhttp://www.hootoo.com/90w-dell-inspiron-8600-laptop-ac-adapter-195v-462a-p-512.htmlhttp://www.hootoo.com/90w-dell-laptop-ac-adapter-195v-462a-pa10-p-414.htmlhttp://www.hootoo.com/gateway-pa165002-laptop-ac-power-adapter-19v-342a-p-6404.htmlhttp://www.hootoo.com/90w-dell-inspiron-1501-laptop-ac-adapter-195v-462a-p-500.htmlhttp://www.hootoo.com/65w-hp-laptop-ac-adapter-dc359a-402018001-185v-35a-p-1184.htmlhttp://www.hootoo.com/65w-hp-laptop-ac-adapter-dc359a-402018001-185v-35a-p-1184.htmlhttp://www.hootoo.com/65w-dell-inspiron-e1705-laptop-ac-adapter-195v-334a-p-911.htmlhttp://www.hootoo.com/90w-dell-laptop-ac-adapter-pa190002d-pa190002d2-195v-462a-p-542.html

Leave a comment