#sourcegenerator
I've just released v2.0.0 of my .NET Telemetry Source Generator: github.com/purview-dev/...

Better support for non-ILogger referenced projects, some bug fixes, and dropped support for .NET 7 for simplifications in the generated output. #OpenTelemetry #Logging #Activities #Metrics #dotnet #aspire
GitHub - purview-dev/purview-telemetry-sourcegenerator: .NET Source Generator for interface-based telemetry building activities, activity events, logs and metrics.
.NET Source Generator for interface-based telemetry building activities, activity events, logs and metrics. - purview-dev/purview-telemetry-sourcegenerator
github.com
February 2, 2025 at 8:44 AM
Happy to share my latest OSS project: PropertyThrowGenerator 🎉

Add clean, compile‑time validated properties to your C# classes with simple attributes - And it works great with MVVM too.

Blog: www.reflectionit.nl/blog/2026/in...

#csharp #sourcegenerator #mvvm @dot.net
June 1, 2026 at 8:57 AM
I just published my first C# Source Generator. It generates the >, >=, <, <= operators for a partial type (class, struct or record) which implements IComparable.

#dotnet #csharp #sourcegenerator #opensource

github.com/sonnemaf/Ref...
April 9, 2025 at 12:53 PM
I just started working on a #dotnet #sourcegenerator for doing dependency injection in #powershell
You can build PowerShell modules in dotnet, but if you do, you are currently faced with these issues:
- no async code
- no dependency injection
- no cancellation token (but still cancelable process)
November 28, 2024 at 11:12 AM
Working on a C# Source generator for non nullable properties. It generates partial properties which throw an ArgumentNullException when the value is set to null.

Would you use this?

#csharp14 #dotnet #sourcegenerator
December 8, 2025 at 6:10 PM
I've added that page, and updated the README[.]md -> NuGet publish is pending, but it's purely there for the updated docs.

github.com/purview-dev/...
Generated Output
.NET Source Generator for interface-based telemetry building activities, activity events, logs and metrics. - purview-dev/purview-telemetry-sourcegenerator
github.com
February 2, 2025 at 2:20 PM
Need testable or just simplified observability in your apps and services?

ActivitySources, Logs and Metrics, all defined quickly and easily on interfaces, injectablable and easy!

github.com/purview-dev/...

#oss #observability #dotnet #opensource #sourcegenerator
GitHub - purview-dev/purview-telemetry-sourcegenerator: .NET Source Generator for interface-based telemetry building activities, activity events, logs and metrics.
.NET Source Generator for interface-based telemetry building activities, activity events, logs and metrics. - purview-dev/purview-telemetry-sourcegenerator
github.com
November 12, 2024 at 6:06 AM
I just published a C# source generator package that implements the #Dispose pattern. It is an early preview, feedback is welcome.

#csharp #sourcegenerator #dotnet

github.com/sonnemaf/Ref...
April 20, 2026 at 10:06 AM
Learn how to streamline your code by removing 1500 lines of boilerplate with a custom source generator. Optimize your projects, enhance readability, and boost performance. #CodeOptimization #SourceGenerator
dev.to
July 8, 2025 at 3:15 PM
Just updated my .NET Telemetry Source Generator to v3.1.0 - go check it out! github.com/kjldev/purvi...

Nuget: www.nuget.org/packages/Pur...

This release includes updates to the sample app supporting the latest #dotnet #aspire release.

Big thanks for @simoncropp.bsky.social for contribution.
GitHub - kjldev/purview-telemetry-sourcegenerator: .NET Source Generator for interface-based telemetry. Supporting activities, logs, and metrics.
.NET Source Generator for interface-based telemetry. Supporting activities, logs, and metrics. - kjldev/purview-telemetry-sourcegenerator
github.com
April 21, 2025 at 5:54 PM
`DiagnosticSuppressor` shines, when we want a dynamic behavior for enabling/disabling a `DiagnosticAnalyzer`. Here I am covering them and of course with tests 😉

👉🏼 bit.ly/4p8d99a or scan the QR code!

#Roslyn #DiagnosticAnalyzer #DiagnosticSuppressor #SourceGenerator #csharp #dotnet
November 16, 2025 at 12:00 PM
As a software engineer, just ranting about a wrong approach in a given context is not enough, we should provide options and alternatives! It applies to #diagnostic #analyzers, they should not just make noise, but providing #code #suggestion!

bit.ly/41eh0ay

#sourcegenerator #csharp #dotnet
February 26, 2025 at 8:31 AM
Just published static view locator source generator for Avalonia so you don't have to use reflection anymore #Avalonia #dotnet #charp #xaml #sourcegenerator www.nuget.org/packages/Sta...
StaticViewLocator 0.0.1
A C# source generator that automatically implements static view locator for Avalonia without using reflection.
www.nuget.org
May 7, 2025 at 9:07 PM
This library is a C# source generator designed to automatically generate string length constants from Entity Framework configurations and data annotations.

#sourcegenerator #entityframework #stringlength #dotnet

github.com/TarasKovalen...
GitHub - TarasKovalenko/EntityLengths.Generator: Source generator for EF Core entity length constants
Source generator for EF Core entity length constants - TarasKovalenko/EntityLengths.Generator
github.com
January 31, 2025 at 8:53 PM
If anyone is using a lot of ILogger, Activity, ActivityEvent, and/ or Meter’s still could save you a significant amount of boilerplate!

Wiki is here - github.com/kjldev/purvi... - and there’s a sample app integrated with Aspire so you get to see all those awesome telemetry via the dashboard.
Home
.NET Source Generator for interface-based telemetry. Supporting activities, logs, and metrics. - kjldev/purview-telemetry-sourcegenerator
github.com
March 23, 2026 at 2:51 PM
I recently created a SourceGenerator project template for custom file formats. Check it out! https://old.reddit.com/r/dotnet/comments/1kuf8jo/i_recently_created_a_sourcegenerator_project/

#dotnet
May 24, 2025 at 4:24 PM
Using this extensively for snapshot testing in my telemetry source generator.

If you want to take a look, it’s all here: github.com/purview-dev/...
GitHub - purview-dev/purview-telemetry-sourcegenerator: .NET Source Generator for interface-based telemetry. Supporting activities, logs, and metrics.
.NET Source Generator for interface-based telemetry. Supporting activities, logs, and metrics. - purview-dev/purview-telemetry-sourcegenerator
github.com
April 17, 2025 at 11:32 AM
Bis eben noch an meinem #SourceGenerator geschrieben (mit der Roslyn-Sache da)... Holy moly, also war 'n wilder Trip, insb. wenn man mit der #Roslyn-API arbeitet, statt 'n StringBuilder zu nehmen. Kein Wunder, dass man recht wenig Projekte damit gesehen hat und die Leute lieber Quick&Dirty machen.
July 29, 2024 at 10:35 PM
Not sure which package I have to reference to use the DependencyProperty SourceGenerator. Can't find it in the Gallery app or docs.
April 3, 2025 at 1:49 PM