docs/coding-guidelines/source-generator-guidelines.md
Recommended reading to better understand source generators, Roslyn Source Generators Cookbook.
IIncrementalGenerator interface.<EnforceExtendedAnalyzerRules>true</EnforceExtendedAnalyzerRules> in the source generator project and then don't use any of the banned APIs it lists.<IsRoslynComponent>true</IsRoslynComponent> in the source generator project to enable debugging support in Visual Studio.RS2008, in the source generator project (that is, <NoWarn>$(NoWarn);RS2008</NoWarn>). The reported issue is handled differently in the runtime repo.