Showing posts with label CodeGeneration. Show all posts
Showing posts with label CodeGeneration. Show all posts

Tuesday, March 17, 2009

It’s a T4 kind of day – Free (reg-ware) T4 Editor from tangible (with UML-Style modeling tools added for flavor)

tangible engineering GmbH - tangible's T4 Editor plus UML-Style modeling tools

“With tangible's T4 Editor you can author your own Code Generator via Text-Templates (TT-Files) with IntelliSense, Syntax-Highlighting. T4 is a Microsoft Language for writing Code Generators which is similar to ASP.NET and is used by the Microsoft internally to build software and new features for .NET 4.0. The T4 Code Generation Engine is already built into Visual Studio - so the only thing that was missing is a good Editor and some free UML-style modeling tools.. so we shipped it.

Now it is up to you to accelerate your projects and start saving your company money by adopting T4 today and generate the code you need directly form diagrams, database schemas or xml files.


T4 Editor Features - T4 Code Generation simplified

The T4 Editor for Syntax Highlighting and Intelli-Sense allows you to author our own code generators in Visual Studio that read from the diagrams, xml or any other data source.

  • Syntax Highlighting for C#, VB.NET, Java, PHP, SQL, MSIL, Python, Batch Files, PASCAL, PowerShell, IL, JSCRIPT, VBSCRIPT, CSS in generated code and T4 Code Sections in C# or VB.NET
  • Intelli-Sense, Intelli-Prompt and Statement Completition for T4 Code Sections. Intelli-Sense will look at all assemblies and namespaces indicated by the import and include pragma. *Limited support for namespaces in the FREE EDITION.
  • Syntax Error Reporting in ErrorList and via Text-Highlighting
  • Templates for Generating from XML Files or Diagrams
  • Access to our Online T4 Template Gallery

In case you do not want write templates your own, you also want to take a look at the tangible architect tour. With tangible architect you can generate an application from a model based on predefined code generation templates and also create your very own templates to run against any of your diagrams

Supported diagram types

With tangible modeling tools you can directly create Use Case Diagrams, Component Diagrams, State Charts, Class Diagrams, Activity Diagrams and Persistent Object Models. Which can also be used for code-generation by a T4 Template.


T4 is one of those threads I’ve been watching since I learned of it last year. It seems to be too cool to not use.

I recently got fired up again on it after recently listening to Scott Hanselman chat with Kathleen Dollard about T4 on Hanselminutes Podcast #152

(via Visual Studio Gallery - T4 Editor FREE EDITION plus tangible modeling tool)


Related Past Post XRef:
Clarius T4 Editor 1.0 RTMs
Interested in template based code generation? Own Visual Studio 2008? Then guess what? You already have one... Say hello to the Text Template Transformation Toolkit (T4)

Wednesday, April 16, 2008

Interested in template based code generation? Own Visual Studio 2008? Then guess what? You already have one... Say hello to the Text Template Transformation Toolkit (T4)

Oleg Sych - Text Template Transformation Toolkit

"Text Template Transformation Toolkit (T4) is a template-based code generation engine. It is included with Visual Studio 2008 and available as a download for Visual Studio 2005 in DSL and GAT toolkits. You can use T4 templates to generate Visual Basic, C#, T-SQL, XML or any other text files.


T4 templates have ASP.NET-like syntax and consist of processing directives, text blocks and code blocks.

<#@ template language="C#" #>
<# Write("World!") #>

Processing directives provide template compilation and processing options. In the example above, <#@ template #> directive specifies that code blocks of this template are written in C#.


madhavrao… - T4 - How to

"List of How-to for Text Transformation Template Toolkit (T4)


Clarius Consulting - T4 Editor (Beta)


The T4 engine used to support transformations is currently distributed by the Visual Studio SDK and with the advent of Visual Studio 2008 (codenamed Orcas) the T4 bits will be come pre-installed "into the box" on all Visual Studio installations (Standard edition and better).

Unfortunately, the design-time experience when using T4 is not yet on a par compared with what you are used to expect from other tools integrated within Visual Studio.

The T4 Editor developed by Clarius Consulting is aimed at converting this missing experience into a first class one, fully integrated into the development environment, offering you support for colorization of the different T4 template parts, IntelliSense, and design-time preview of your templates.

Our T4 Editor is currently supported under both Visual Studio 2005 and Visual Studio 2008 products.


I heard about this today in the recent DotNetRocks cast and seeing the ZarkBlog post reminded me to check it out...

This is pretty cool. It seem that we, VS2008 users, have a template based code generation feature included in the box (and VS2005 users can also get it as a separate download) Free, gratis, etc.

More stuff to play with... :)

(via DotNetRocks - It's the ALT.NET Show! & ZarkBlog - Text Template Transformation Toolkit (T4))

Wednesday, July 04, 2007

ResX to XLS and Back Again - A Multi-Language Resource Helper

CodeProject - Resx To Xls Conversion for multi language support

"Do you need to localize your resx files and you don't want to open one file at a time, clean it from unused keys, localize it etc etc. ? Resx2Xls it's for you.

1) Open resx2xls. Just point you Project, go to resx2xls tab, the cultures that you nedd for localization, and Click on "Create new empty xls" button. Done!!

2) Fill your excel file with your localized key values or just send it to your translator

3) Now do you want to create the localized resx files from the filled excel workbook? Open resx2xls, go to the xls2resx tab, selected your xls file and click "Create resx files". Done!!

4) Have you updated your Project and your resource files have been modified (added, removed, updated)? No problem. Open resx2xls, go to the general tab and select your project root, go to the xls2resx tab, selected your xls file and click "Update xls from Project". Done!!


Nice. When/if I add multi-language support to my Blogger Backup utility, this could be very useful.

Tuesday, June 19, 2007

MyGeneration is now OSS (BSD Licensed and Available on SourceForge)

SourceForgeMyGeneration Code Generator

"MyGeneration is an extremely flexible template based code generator written in Microsoft.NET. MyGeneration is great at generating code for ORM architectures. The meta-data from your database is made available to the templates through the MyMeta API."

MyGeneration - Code Generation, O/R Mapping, and Architectures


  • MyGeneration's dOOdads Architecture Included for Both C# and VB.NET (Quickstart
  • Supported Architectures - dOOdadsEntitySpacesEasyObjects.NET/EntLibGentle.NETOpf3NHibernateMicrosoft's DAAB,  DotNetNukeiBatis
  • Support for Twelve Different Database Systems. 
    Microsoft SQLOracleIBM DB2,   PostgreSQLMicrosoft AccessFireBirdInterbaseVistaDBSQLiteMySQL, Advantage and Pervasive
  • Template Based Code Generator Supporting Four Template Languages - JScript, VBScript, C# and VB.NET
  • Ability to Create Your Own Embedded User Interface in your Templates
  • Online Template Library for Publishing and Downloading Templates
  • ..."

    Interesting... I dig code generation as I'm a pretty lazy guy and hate writing cookie-cutter code. Heck I'll write SQL statements to generate my VB.Net code if I have too (which I have ;)

    I'll have to find some time to check this out...

    (via DotNetKicks - MyGeneration Goes Open Source on