Understand the Helldivers_2_SourceGen project structure
masterThe repository is organized into three distinct projects to demonstrate different aspects of Roslyn source generators:
- Helldivers_2_SourceGen: A .NET Standard project containing the actual generator implementations. Note: You must build this project to see the generated code in your IDE.
SampleSourceGenerator.cs: Generates C# classes based on a text file (e.g., a DDD ubiquitous language registry).SampleIncrementalSourceGenerator.cs: An incremental generator that creates custom reports based on class properties. It targets classes annotated with theGenerators.ReportAttributeattribute.
- Helldivers_2_SourceGen.Sample: A consumer project that references the generators. It uses specific
ProjectReferenceparameters to ensure the project is treated as a set of source generators. - Helldivers_2_SourceGen.Tests: A suite of unit tests designed for developing and verifying language-related features.