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 Setting application environment variables in IIS without restarts

    Setting application environment variables in IIS without restarts

    In this post I outline how IIS works, describe how to add environment variables to app pools, and show how to prevent automatic app pool recycling on changes…

     in  HostingConfiguration
  5. Banner image for Preventing client-side cross-site-scripting vulnerabilities with Trusted Types

    Preventing client-side cross-site-scripting vulnerabilities with Trusted Types

    In this post I describe how the Trusted Types Content-Security-Policy feature can protect you against cross-site-scripting attacks.…

     in  ASP.NET CoreSecurityFront End
  6. Banner image for Supporting multiple .NET SDK versions in a source generator

    Supporting multiple .NET SDK versions in a source generator

    Creating a source generator - Part 14

    In this post I show how I updated my NetEscapades.EnumGenerators projects to support multi-targeting two different .NET SDK versions…

     in  Source GeneratorsC#
  7. Banner image for Supporting multiple .NET SDK versions in analyzers and source generators

    Supporting multiple .NET SDK versions in analyzers and source generators

    In this post I describe why source generators might need to work with multiple versions of the .NET SDK and how NuGet packages support this in .NET 6…

     in  Source GeneratorsC#
  8. 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#
  9. 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#
Andrew Lock | .Net Escapades
Want an email when
there's new posts?