site image
Andrew Lock avatar

Andrew Lock

  1. Loading...
  2. Sponsored by Dometrain Courses—Get 30% off Dometrain Pro with code ANDREW30 and access the best courses for .NET Developers

    30% off with code ANDREW30 on Dometrain Pro
  3. ASP.NET Core in Action, Third Edition

    My new book ASP.NET Core in Action, Third Edition is available now! It supports .NET 7.0, and is available as an eBook or paperback.

  4. Banner image for Saving source generator output in source control

    Saving source generator output in source control

    Creating a source generator - Part 6

    In this post I show how to emit your source generator output to disk, so you can include it in source control and code reviews.…

  5. Banner image for Finding a type declaration's namespace and type hierarchy

    Finding a type declaration's namespace and type hierarchy

    Creating a source generator - Part 5

    In this post I show a couple of handy patterns for source generators: finding a type declaration's namespace and its class hierarchy…

  6. Banner image for Customising generated code with marker attributes

    Customising generated code with marker attributes

    Creating a source generator - Part 4

    In this post I describe how to customise a source generator by reading properties from a marker attribute…

  7. Banner image for Integration testing and NuGet packaging

    Integration testing and NuGet packaging

    Creating a source generator - Part 3

    In this post I describe how to integration-test your source generator, how to pack it in a NuGet package, and how to test your NuGet package!…

  8. Banner image for Testing an incremental generator with snapshot testing

    Testing an incremental generator with snapshot testing

    Creating a source generator - Part 2

    In this post I describe how to unit test an incremental generator using Verify for snapshot testing…

  9. Banner image for Creating an incremental generator

    Creating an incremental generator

    Creating a source generator - Part 1

    In this post I walk through how to create a practical .NET 6 incremental source generator: an enum extensions class with a fast ToString() implementation…

Andrew Lock | .Net Escapades
Want an email when
there's new posts?