Picture of Steve Collins
    Pronouns: He/Him
    Talk Length: 60 mins

The [Source Code] Generation Game

There has been a lot of buzz around source generators in .NET 5 and it's there's more to come in .NET 6.

But ... how did we get here and what may the future hold?

This talk starts with a brief history of my journey into source code generation, starting with the ZX Spectrum, through the Visual Basic years and then the code generation tools used with .NET framework and Visual Studio.

The remainder of the talk will focus on the source generators introduced with .NET 5, covering

  • How they differ from traditional template based code generation
  • Tooling to help debugging
  • Gotchas with the tooling!
  • Unit testing
  • Lastly, we will look at where source generators may go in the future

  • More out of the box use, such as System.Text.Json in .NET 6
  • Potential for Intellicode and Github Copilot integration
  • About Steve

    Freelance software developer

    Steve Collins is an independent software developer/architect with over 25 years’ experience in the industry working with Microsoft technologies.

    Steve blogs at https://SteveTalksCode.co.uk and tweets@SteveTalksCode

    Steve has given talks about configuration at events and user groups around the UK and has also discussed configuration as a guest on the Dot Net Core Show podcasthttps://dotnetcore.show/episode-49-configuration-in-net-core-with-steve-collins/and the Documentation Not Included podcasthttps://www.youtube.com/watch?v=kXoprCDHBZM


  • Twitter
  • Website