The constraint reference 'slugify' could not be resolved to a type
问题 ASP.NET Core 2.2 has introduced an option for slugifying routing url using Parameter transformer as follows: routes.MapRoute( name: "default", template: "{controller=Home:slugify}/{action=Index:slugify}/{id?}"); I have done the same thing as follows: routes.MapRoute( name: "default", template: "{controller:slugify}/{action:slugify}/{id?}", defaults: new { controller = "Home", action = "Index" }); My routing configuration in the ConfigureServices method as follows: services.AddRouting(option =