All Blog Posts

Source Generators: The End of T4 Templates?

source-generators t4-templates dotnet csharp code-generation roslyn

In the evolving landscape of .NET Development, code generation has been a cornerstone for creating boilerplate code, improving developer productivity and automating processes. T4 (Text Template Transformation Toolkit) has been the go-to solution for well over a decade for this purpose, offering a powerful but also a somewhat underappreciated templating engine right inside Visual Studio. They have enabled developers to generate everything from data models to fully fledged API clients.

Read more