© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
C#C
C#•3y ago•
13 replies
Tanoshi

✅ Getting started with source generators

Hi guys, I am currently trying create a source generator. So I startet with setting up a project to test source generators and try out some things.
It somewhat worked however the generated files seem to not be updating when I the code of the generator.
I tried dotnet clean and dotnet build but that didn't change anything. Rider shows the generated files properly however when I look in the dlls of the build output the generated files in there are still the same as before. I also had some issues building it at first but at some point it just worked, not quite sure why.

Today I tried to build the project again and it did change the generated files. Does anyone know what I am doing wrong or just how to properly setup a source generator project in general.
C# banner
C#Join
We are a programming server aimed at coders discussing everything related to C# (CSharp) and .NET.
61,871Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

Getting started with source analyzers
C#CC# / help
3y ago
Source generators VSCode
C#CC# / help
2y ago
System.Text.Json Source Generators
C#CC# / help
3y ago
Source Generators In Nuget Packages
C#CC# / help
3y ago