Skip to main content

Source-generated .NET building blocks

Compile the repetitive.
Keep the intent.

Valiant turns explicit C# declarations into fast validation, endpoints, mapping, and settings infrastructure—with no runtime assembly scanning.

authoring.csgenerator ready
01 [ValiantMapper]
02 partial class UserMapper
03   : MapperDefinition<User, UserDto>;
generated at compile time
Direct assignments
Typed contract
DI registration
Actionable diagnostics
01Scoped discovery

Markers define exactly what generators inspect.

02Direct output

Generated C# keeps production paths predictable.

03Debuggable intent

Author rules in normal code and step through them.

04Actionable failures

Diagnostics catch unsupported shapes at build time.