Framework Status: Beta (Graduating to RC soon; API subject to change).
Install the template:
dotnet new install Bnaya.SourceGenerator.Template
Create new:
dotnet new srcgen -h
dotnet new srcgen -n Comp.MyGenerator
Uninstall the template:
dotnet new uninstall Bnaya.SourceGenerator.Template