Change the location of the EditorTemplates folder

About what I read, the EditorTemplates folder should be in the Shared folder in the Views folder. Can I change this location?

Thank.

+5
source share
2 answers

I always placed EditorTemplatesunder each view folder to which they were linked. For instance:

Editor templates

If they were "split" across multiple views, I would place them in the "Shared / EditorTemplates" folder.

+4
source

Can I change this location?

No, this is hardcoded in the MVC source code. Unfortunately.

0
source

All Articles