https://github.com/SG4MVC/SG4MVC
https://github.com/SG4MVC/SG4MVC
Last synced: 5 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/SG4MVC/SG4MVC
- Owner: SG4MVC
- License: apache-2.0
- Created: 2022-05-30T06:35:56.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2024-01-28T14:11:22.000Z (almost 2 years ago)
- Last Synced: 2025-08-01T01:43:32.946Z (6 months ago)
- Language: C#
- Size: 809 KB
- Stars: 4
- Watchers: 2
- Forks: 2
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
- RSCG_Examples - https://github.com/SG4MVC/SG4MVC
README
[](https://www.nuget.org/packages/SG4MVC)
## SG4MVC
SG4MVC is a source generator for ASP.NET MVC Core apps that creates strongly typed helpers that eliminate the use of literal strings in many places.
It is a re-implementation of [R4MVC](https://github.com/T4MVC/R4MVC) using source generators.
R4MVC runs as you build, and currently has only been tested on net6.0
## Get Started?
Just want to get started? Visit the [Get Started page](../../wiki/1.-Get-Started) for installation and configuration instructions.
## Benefits
Instead of
```HTML+Razor
@Html.ActionLink("Dinner Details", "Details", "Dinners", new { id = Model.DinnerID }, null)
```
SG4MVC lets you write
```HTML+Razor
@Html.ActionLink("Dinner Details", MVC.Dinners.Details(Model.DinnerID))
```
When you're using tag helpers, instead of
```HTML+Razor
Dinner Details
```
you can write (after registering Sg4Mvc tag helpers in `_ViewImports.cshtml` with the directive: `@addTagHelper *, Sg4Mvc`)
```HTML+Razor
Dinner Details
```
and that's just the beginning!
### Use the following links to get started
* **Install** SG4MVC is distributed using using [NuGet](http://nuget.org). Visit the [Get Started page](../../wiki/1.-Get-Started)
* **Discuss**: Discuss it on [GitHub](https://github.com/SG4MVC/SG4MVC/issues)
* **Contribute**
* **History & release notes**: [change history](CHANGELOG.md)