VS2010 SP1: T4 Improvements Summary

Over the last few posts, I’ve talked about the exciting improvements we’ve made to T4 Text Templating in Service Pack 1 for Visual Studio 2010. Here’s a quick roundup: Firstly, T4 no longer locks referenced assemblies in memory, meaning it’s much easier to use reflection in T4 templates and to use compiled helper libraries. Then…


VS2010 SP1: T4 Template Inheritance Part IV – Regular template inheritance

I promised in the last post that I’d show how to do template extensibility and customization using inheritance with regular templates, rather than the preprocessed kind, so here goes. The preprocessed solution was a three-layer design. The base preprocessed template, DataClass.tt provided the code generation smarts to spit out a customizable C# class from some…


VS2010 SP1: T4 Template Inheritance Part III – Customizing The Template

Last time, in Part II, I described a highly structured approach to creating and harnessing a preprocessed template to generate a simple C# class from metadata. I put lots of nice extensibility points in that template and now we’re going to exploit them to show how easy it gets to be to customize a template…


VS2010 SP1: T4 Template Inheritance Part II – The Core Template

  Last time, I outlined my scenario – we have a template that produces a very vanilla C# class from metadata and we’d like to customize it to produce something more directly applicable to our current project.  Of course, we could always just copy the standard template into our project and hack around a little…


VS2010 SP1: T4 Template Inheritance Part I – Sample Metadata

We’ve done a bunch of work on T4 in Visual Studio 2010 SP1 to enable template inheritance.  A reasonable question at this point would be “Why would you want inheritance in your text templates?” Well, the typical reason would be the same as with any other code – because you want reuse and extensibility between…


Bending T4 to be a textual DSL host

The estimable MVP and T4 enthusiast, Kathleen Dollard has a new post where she’s using T4’s ability to spit arbitrary text as a host for a textual DSL. She’s set up a small DSL for describing contract interfaces for a MEF framework: new Interface() { Name = “ISearchModelBase”, Scope = Scope.Public, CompositionInfo = { new…


WPF, DSL in Visual Studio 2008

Although data-binding to WPF is a feature of DSL Tools in Visual Studio 2010, that hasn’t stopped our vibrant community from hacking away to get results today with VS2008. Have a look at this selection of posts: Using WPF As The Designer Surface In DSL Tools Provide an improved user experience to your DSL’s Both…


New DSL Tools lab

Jean-Marc has just released a complete walkthrough of DSL Tools for Visual Studio 2008 aimed at DSL beginners as a lab on CodeGallery. Here you can see the language from the lab designing mouse gestures for manipulating primitives in a simple graphics program. Very nice indeed. Technorati Tags: DSL Tools, Modeling, Hands-on lab, Domain-Specific Language


DSL Book samples updated for Visual Studio 2008

It’s taken us a little while, but the code samples for our book, Domain-Specific Development with Visual Studio DSL Tools, are now updated for Visual Studio 2008. You can download them from www.domainspecificdevelopment.com. Woo Hoo. Enjoy.         Technorati Tags: DSL Tools,Code Samples,VSX,Domain-Specific Development,Steve Cook,Gareth Jones,Stuart Kent,Alan Cameron Wills