Site Archives XML

Extending T4: <#@ xsd #> directive


This article describes a custom T4 directive processor for converting XML schema definitions into .NET classes, which allows using strongly-typed code to extract information from various XML files. In particular, this simplifies creating custom T4 code generation templates for LINQ to SQL .dbml files and ADO.NET Entity Framework .edmx files. The article includes links to ready to use xsd directive processor and sample source code.

How to use T4 to generate .config files


This article demonstrates how to create and use a simple T4 template to generate App.config files for development, testing and production environments in Visual Studio.