Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
166 views
in Technique[技术] by (71.8m points)

.net - Rename the "Shared" folder

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

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)
Waitting for answers

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...