site image
Andrew Lock avatar

Andrew Lock

Source Generators
  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 Accessing MSBuild properties and user configuration from source generators

    Accessing MSBuild properties and user configuration from source generators

    Creating a source generator - Part 13

    In this post I describe how to read MSBuild settings from inside a source generator, and how to use this to allow user configuration of your generator…

     in  Source GeneratorsC#
  5. Banner image for Reading compilation options and the C# version in source generators

    Reading compilation options and the C# version in source generators

    Creating a source generator - Part 12

    In this post I show how to read details of a target project from a source generator, such as assembly name, the current configuration, or the c# version…

     in  Source GeneratorsC#
  6. Banner image for Implementing an interceptor with a source generator

    Implementing an interceptor with a source generator

    Creating a source generator - Part 11

    In this post I show how interceptors work, and how you can implement an interceptor using a source generator and the GetInterceptableLocation API…

     in  Source GeneratorsC#
  7. Banner image for Using the YamlDotNet source generator for Native AOT

    Using the YamlDotNet source generator for Native AOT

    In this post I show how you can use the YamlDotNet source generator to do strongly-typed serialization and deserialization, even in Native AOT apps…

  8. Banner image for Recent updates for NetEscapades.EnumGenerators: interceptors!

    Recent updates for NetEscapades.EnumGenerators: interceptors!

    In this post I describe the experimental interceptor support in NetEscapades.EnumGenerators that replaces ToString() calls with ToStringFast() automatically…

     in  .NET CoreRoslynSource Generators
  9. Banner image for Testing your incremental generator pipeline outputs are cacheable

    Testing your incremental generator pipeline outputs are cacheable

    Creating a source generator - Part 10

    In this post I show an approach for unit testing that your incremental generator outputs are cached correctly so you don't impact IDE performance…

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