safe-routing
generator-start
safe-routing | generator-start | |
---|---|---|
1 | 2 | |
28 | 21 | |
- | - | |
8.5 | 0.0 | |
13 days ago | over 2 years ago | |
C# | C# | |
MIT License | 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.
safe-routing
-
Advantages and disadvantages of FastEndpoints
There are other approaches to safe routing, like those that use C# Source Generators
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?
Xtz.StronglyTyped - Set of NuGet packages to strongly-type your interfaces (properties, methods, APIs, DB entities, appsettings). Eliminate stringly-typed interfaces. Make compiler your friend, introduce semantics to your code.
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.
Swashbuckle.AspNetCore - Swagger tools for documenting API's built on ASP.NET Core
HttpClientCodeGenerator - HttpClientGenerator is a tool that uses the Roslyn code generator feature to write boilerplate HttpClient code for you.
Result - A result abstraction that can be mapped to HTTP response codes if needed.
clean-minimal-api - A project showcasing how you can build a clean Minimal API using FastEndpoints
PersianDataAnnotations - PersianDataAnnotations is ASP.NET Core MVC & ASP.NET MVC Custom Localization DataAnnotations (Localized MVC Errors) for Persian(Farsi) language - فارسی سازی خطاهای اعتبارسنجی توکار ام.وی.سی. و کور.ام.وی.سی. برای نمایش اعتبار سنجی سمت کلاینت