Add view location
In ASP.NET Core MVC, here’s how to add a new default location to find views:
services.AddControllersWithViews().AddRazorOptions(options => options.ViewLocationFormats.Add("/Views/SpecialPlace/{0}.cshtml"))
Software development tutorials and demos lasting no more than 60 seconds. No in-depth explanations, no off-topic rants, and no slides. One small topic per video - only code, console, config, and client. All videos come with a corresponding blog entry, and all code is available on GitHub.
Comments
Post a Comment