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.
14 replies