MvcCodeRouting for ASP.NET MVC analyzes your controllers and actions and automatically creates the best possible routes for them.
Organize your controllers and views using namespaces (no more areas) that can go as deep as you want.
Includes support for hierarchical (a.k.a. RESTful) and also user-defined custom routes (using an attribute).
It also supports embedded views (as assembly resources) that can be individually overridden by file views.
MvcCodeRouting is a single unified solution that provides namespace-aware automatic route creation, URL generation and views location.
For ASP.NET hosting install the MvcCodeRouting.Web.Http.WebHost package.
See the version list below for details.
Install-Package MvcCodeRouting.Web.Http -Version 1.0.0
dotnet add package MvcCodeRouting.Web.Http --version 1.0.0
<PackageReference Include="MvcCodeRouting.Web.Http" Version="1.0.0" />
paket add MvcCodeRouting.Web.Http --version 1.0.0
- Requires MvcCodeRouting v1.2
- Moved WebHost to separate assembly/package
- MvcCodeRouting (>= 1.2.0 && < 1.3.0)
This package is not used by any popular GitHub repositories.