Archives for March, 2008

How to generate multiple outputs from single T4 template


For some code generation tasks, like generating SELECT stored procedures based on indexes of a given database table, number of output artifacts may not be known upfront. Because T4 was designed to generate a single output file from one template file, developers are forced to generate multiple code artifacts in the same source file. This conflicts with the widely used practice of using one source file per code artifact. This article demonstrates how to work around this limitation of T4, generate multiple files from a single template and automatically add them to a Visual Studio project.

Code Generation with Visual Studio Templates


This article provides an overview of Visual Studio Templates, demonstrates how to create a project item template for a T4 file and includes a ready-to-use T4 item template.

Visual Studio Templates for T4


Musings about Visual Studio Templates. Includes links to articles about Visual Studio Templates and ready-to-use templates for T4 files.

March meeting of Tampa Bay IASA chapter


10 Years in Identity – A Veteran’s Experience Succeeding With Identity Management
In this presentation, Jonti McLaren will share his hard won experience solving difficult Web Identity problems and discuss the seven core principles critical for any successful Identity Management deployment. Jonti has helped hundreds of companies successfully solve their Web Identity management challenges and shares […]

Orlando Code Camp 2008


I will be presenting “Code Generation with T4 Text Templates” at the Orlando Code Camp on Saturday, March 22.

How to use T4 to generate strongly-typed AzMan wrapper


This article provides a brief overview of AzMan and demonstrates how several existing APIs can be used to perform authorization checks in .NET applications. It then discusses shortcomings of the current APIs and demonstrates how T4 templates can be used to generate a set of C# classes and enumerations that wrap AzMan COM API and allow application developers to write strongly-typed authorization code.