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"))

Comments

Popular posts from this blog

C# Record Serialization

Add timestamp to photo using ImageMagick

Read/write large blob to SQL Server from C#