jab
UrlActionGenerator
jab | UrlActionGenerator | |
---|---|---|
4 | 2 | |
1,007 | 46 | |
- | - | |
8.0 | 1.1 | |
4 months ago | about 1 year 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.
jab
- Injectio - Source Generator for Dependency Injection
-
Why is no-one using Roslyn token-based code generation with Source Generators?
Having the same issues trying to get into source generators. I don't see too many opportunities to include it in my day-to-day development, or at least with the examples I've seen thus far. The exception being the dependency-injection based ones like https://github.com/pakrym/jab
-
Is the era of reflection-heavy C# libraries at an end?
There's also this https://github.com/pakrym/jab. Though imo, it has some downsides as well. One being less developer friendly when composing things compared to the current registration style and there's also convention based registration that so far isn't as easy to make.
Indeed! They're still early, but source generators can enable this sort of functionality, eg: https://github.com/pakrym/jab
UrlActionGenerator
-
Is the era of reflection-heavy C# libraries at an end?
There are some cases where it's really nice to eliminate magic strings. Here's one simple example nuget that auto generates calls to endpoints so you don't have to use magic strings for url generation in MVC. It's not as grand as the samples of using it on Serializers or DI but it does make it possible for small QOL things like these. This could even be extended to things like Blazor to autogenerate the backend's Rest endpoints to avoid hard coding url strings on httpcalls and make sure it's always in sync with the backend's endpoints.
-
Very useful NuGet package for generating source code Url Actions
Just click on Source Repository on the NuGet page, but here's the repo: https://github.com/sleeuwen/UrlActionGenerator
What are some alternatives?
stronginject - compile time dependency injection for .NET
T4MVC - T4MVC is a T4 template for ASP.NET MVC apps that creates strongly typed helpers that eliminate the use of literal strings in many places.
.NET Runtime - .NET is a cross-platform runtime for cloud, mobile, desktop, and IoT apps.
Nuget Package Manager - Repo for NuGet Client issues
dotnet - .NET Community Toolkit is a collection of helpers and APIs that work for all .NET developers and are agnostic of any specific UI platform. The toolkit is maintained and published by Microsoft, and part of the .NET Foundation.
csharp-source-generators - A list of C# Source Generators (not necessarily awesome) and associated resources: articles, talks, demos.
SqlMarshal - Generates data access using stored procedures