How beminee/configboundnet works
ConfigBoundNET is a .NET compile-time configuration generator. A developer annotates a partial configuration type; the Roslyn generator analyzes its shape and annotations, reports build-time diagnostics, and emits binding, validation, DI registration, and schema code. At host startup, generated registration binds configuration and validates options. The graph also shows the editor-fix branch and the generator’s internal model/emission layers. Edges are limited to README statements and source-index references; unsampled runtime wiring is not inferred.
Main entry points: ConfigBoundGenerator.cs Incremental generator · ConfigSectionModel.cs Section model · DiagnosticDescriptors.cs Diagnostic descriptors · SourceEmitter.cs Binding and validation emitter
Components 20
Analysis
- Incremental generator
src/ConfigBoundNET/ConfigBoundGenerator.cs - Embedded attributes
src/ConfigBoundNET/AttributeSource.cs - Pipeline tracking
src/ConfigBoundNET/TrackingNames.cs
Code generation
- Binding and validation emitter
src/ConfigBoundNET/SourceEmitter.cs - JSON schema emitter
src/ConfigBoundNET/SchemaEmitter.cs
Diagnostics and fixes
- Diagnostic descriptors
src/ConfigBoundNET/DiagnosticDescriptors.cs - Empty-name fix
src/ConfigBoundNET.CodeFixes/CodeFixes/EmptySectionNameCodeFix.cs - Target-kind fix
src/ConfigBoundNET.CodeFixes/CodeFixes/InvalidTargetKindCodeFix.cs - Partial-type fix
src/ConfigBoundNET.CodeFixes/CodeFixes/MustBePartialCodeFix.cs - Nested-type fix
src/ConfigBoundNET.CodeFixes/CodeFixes/NestedTypeCodeFix.cs - Required-attribute fix
src/ConfigBoundNET.CodeFixes/CodeFixes/RedundantRequiredCodeFix.cs
Generator internals
- Section model
src/ConfigBoundNET/ConfigSectionModel.cs - Annotation model
src/ConfigBoundNET/DataAnnotationModel.cs - Equatable collections
src/ConfigBoundNET/EquatableArray.cs - Section-name helper
src/ConfigBoundNET/SectionNameHelper.cs
Other components
- Application developer
- Roslyn generator host
- Configuration source
- Generated application code
- Application host
Connections 25
- Application developer → Incremental generator: annotates types
README.md - Roslyn generator host → Incremental generator: runs
- Incremental generator → Embedded attributes: emits attributes
src/ConfigBoundNET/ConfigBoundGenerator.cs - Incremental generator → Pipeline tracking: names pipeline steps
src/ConfigBoundNET/ConfigBoundGenerator.cs - Incremental generator → Section model: builds models
- Incremental generator → Binding and validation emitter: emits binding code
src/ConfigBoundNET/ConfigBoundGenerator.cs - Incremental generator → JSON schema emitter: emits schemas
src/ConfigBoundNET/ConfigBoundGenerator.cs - Section model → Annotation model: captures annotations
src/ConfigBoundNET/ConfigSectionModel.cs - Section model → Equatable collections: uses
src/ConfigBoundNET/ConfigSectionModel.cs - Section model → Section-name helper: infers names
src/ConfigBoundNET/ConfigSectionModel.cs - Section model → Diagnostic descriptors: creates diagnostics
src/ConfigBoundNET/ConfigSectionModel.cs - Binding and validation emitter → Section model: reads model
src/ConfigBoundNET/SourceEmitter.cs - Binding and validation emitter → Annotation model: emits checks
src/ConfigBoundNET/SourceEmitter.cs - Binding and validation emitter → Equatable collections: uses
src/ConfigBoundNET/SourceEmitter.cs - JSON schema emitter → Section model: reads model
src/ConfigBoundNET/SchemaEmitter.cs - JSON schema emitter → Diagnostic descriptors: reports diagnostics
src/ConfigBoundNET/SchemaEmitter.cs - Empty-name fix → Diagnostic descriptors: fixes diagnostic
src/ConfigBoundNET.CodeFixes/CodeFixes/EmptySectionNameCodeFix.cs - Empty-name fix → Section-name helper: infers name
src/ConfigBoundNET.CodeFixes/CodeFixes/EmptySectionNameCodeFix.cs - Target-kind fix → Diagnostic descriptors: fixes diagnostic
src/ConfigBoundNET.CodeFixes/CodeFixes/InvalidTargetKindCodeFix.cs - Partial-type fix → Diagnostic descriptors: fixes diagnostic
src/ConfigBoundNET.CodeFixes/CodeFixes/MustBePartialCodeFix.cs - Nested-type fix → Diagnostic descriptors: fixes diagnostic
src/ConfigBoundNET.CodeFixes/CodeFixes/NestedTypeCodeFix.cs - Required-attribute fix → Diagnostic descriptors: fixes diagnostic
src/ConfigBoundNET.CodeFixes/CodeFixes/RedundantRequiredCodeFix.cs - Incremental generator → Generated application code: produces
README.md - Generated application code → Configuration source: binds and validates
README.md - Application host → Generated application code: registers options
README.md