site image
Andrew Lock avatar

Andrew Lock

Source Generators
  1. Loading...
  2. Sponsored by Nick Chapsas—Want to learn how to build elegant REST APIs in .NET? Get 5% off Nick's latest course "From Zero to Hero: REST APIs in .NET"!

    From Zero to Hero: REST APIs in .NET
  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 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…

     in  .NET Core .NET 7 .NET 8 Source Generators
  5. Banner image for Avoiding performance pitfalls in incremental generators

    Avoiding performance pitfalls in incremental generators

    Creating a source generator - Part 9

    In this post I describe some important things to think about when designing your incremental source generator, particularly the pitfalls to watch out for…

     in  .NET Core .NET 7 .NET 8 Source Generators
  6. Banner image for Updates to the StronglyTypedId library - simplification, templating, and CodeFixes

    Updates to the StronglyTypedId library - simplification, templating, and CodeFixes

    Using strongly-typed entity IDs to avoid primitive obsession - Part 8

    In this post I describe some recent major updates to my StronglyTypedId NuGet package, describe why I made the changes, and demonstrate how they work…

     in  ASP.NET Core NuGet Source Generators C#
  7. Banner image for Redacting sensitive data in logs with Microsoft​.Extensions​.Compliance​.Redaction

    Redacting sensitive data in logs with Microsoft​.Extensions​.Compliance​.Redaction

    In this post I show how you can add redaction to your [LogProperties] and [TagProvider] objects using the Microsoft.Extensions.Compliance.Redaction package…

     in  ASP.NET Core Logging Source Generators C# .NET 8
  8. Banner image for Enriching logs with [TagProvider] and ILogEnricher

    Enriching logs with [TagProvider] and ILogEnricher

    In this post I look at the [TagProperties] and ILogEnricher features from the Microsoft.Extensions.Telemetry and show how they can be used in your apps.…

     in  ASP.NET Core Logging Source Generators C# .NET 8
  9. Banner image for Behind [LogProperties] and the new telemetry logging source generator

    Behind [LogProperties] and the new telemetry logging source generator

    In this post I look at the new Microsoft.Extensions.Telemetry.Abstractions logging source generator, the generated code, and the [LogProperties] attribute…

     in  ASP.NET Core Logging Source Generators C# .NET 8
Andrew Lock | .Net Escapades
Want an email when
there's new posts?