#Source-Generators
2 notas · última:
Logging Performance Improvements with Source Generators in C# .NET
The post explains how source-generated logging in .NET uses `LoggerMessage` on partial methods to reduce overhead, improve type safety, cut boilerplate, and keep log messages consistent.
.NET 5 Source Generators Jump Start
The post walks through setting up a .NET 5 solution with a separate netstandard2.0 generator library, adding Roslyn packages, writing a simple ISourceGenerator, and consuming the generated code from a console app.
