HttpClientCodeGenerator
generator-start
HttpClientCodeGenerator | generator-start | |
---|---|---|
2 | 2 | |
45 | 21 | |
- | - | |
0.0 | 0.0 | |
over 2 years ago | over 2 years ago | |
C# | C# | |
- | MIT License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
HttpClientCodeGenerator
generator-start
-
Does anyone know how to write a source generator completely from scratch?
I've tried following this MS article about source generators to a tee, but it just doesn't work. I then got linked this template, but it contains a ton of stuff I have no idea what it does and why it may or may not be required for the generator to function. Does anyone actually know the minimum amount of stuff that is required for a source generator to work and how to write one completely from scratch without any templates? I would really like to avoid cluttering up my solution with unnecessary files.
-
The pain points of C# source generators
Testing and therefore debugging source generators manually is quite simple, see: https://github.com/jmarolf/generator-start/blob/main/tests/AutoNotifyGeneratorTests.cs as a template.
What are some alternatives?
csharp-source-generators - A list of C# Source Generators (not necessarily awesome) and associated resources: articles, talks, demos.
PrimaryParameter - Using a Field or Property attribute on parameters. Automaticaly generate private readonly fields or private properties. Forbid the use of primary constructor's parameters.
NullGuard - Adds null argument checks to an assembly
safe-routing - A C# source generator for ASP.NET Core razor pages and MVC controllers which produces strongly-typed identifiers for routes.
Tortuga.Shipwright - A trait engine for C#.
Enum.Source.Generator - A C# source generator to create an enumeration class from an enum type. With this package, you can work on enums very, very fast without using reflection.
M31.FluentAPI - Generate fluent APIs for your C# classes with ease.