finds.dev

NikolayIT/ASP.NET-Core-Template

A ready-to-use template for ASP.NET Core with repositories, services, models mapping, DI and StyleCop warnings fixed.

View on GitHub

★ 1,186C#MITupdated Mar 2026

// the take

A `dotnet new` template for ASP.NET Core MVC that pre-wires the repository pattern, AutoMapper, soft-delete base models, StyleCop, and Identity. It's aimed at developers who want a structured starting point rather than the bare Microsoft scaffold, particularly those building CRUD-heavy web apps with EF Core.

The soft-delete infrastructure (BaseDeletableModel, IDeletableEntity, EfDeletableEntityRepository) is genuinely useful and consistently implemented — it's the kind of thing you'd otherwise bolt on halfway through a project and regret. The IMapFrom<T>/IHaveCustomMappings pattern keeps AutoMapper configuration close to the ViewModel rather than scattered in a profile file. The TemplateRenamer tool handles the namespace rename after dotnet new, which is a real problem the official template mechanism handles badly. StyleCop is configured and enforced from day one, which enforces consistency before the codebase grows.

Topics still list asp-net-core-3-1 but the migration timestamp is from March 2026, so it's unclear what version this actually targets — the csproj files would tell you, but the README never says. The repository abstraction (IRepository, IDeletableEntityRepository) is a thin wrapper over DbContext that doesn't add much and makes unit testing awkward since you can't easily swap it for an in-memory EF provider. There's no Razor Pages variant, no minimal API option, and no guidance on when to deviate from the pattern — you get one opinionated structure with no escape hatches documented. The Selenium test project exists but WebTests.cs is almost certainly empty or trivial, which gives a false sense that UI testing is handled.

We read the README, the directory tree and a key source file in July 2026. Nobody pays to be listed. How we judge →

// at a glance

Stars
1,186
Forks
175
Language
C#
License
MIT
Last commit
14 Mar 2026

// nearby

If ASP.NET-Core-Template isn't quite it.

All repos →