I don't like the Shared
folder name as is located among all other views and sometimes is hard to find visually in the project. This is why I decided to rename it to _Shared
(like this it's always in top).
I used the
services.Configure<RazorViewEngineOptions>(
options => options.ViewLocationFormats.Add("/Views/_Shared/{0}.cshtml"));
As I understand, I only "Add"ed another folder to the view search engine, I didn't really change the "Shared" folder meaning or behavior, and probably it is used by other core engines?
So, can I remove and forget the "Shared" View folder?
question from:
https://stackoverflow.com/questions/66055401/rename-the-shared-folder 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…