Answer the question
In order to leave comments, you need to log in
How to set a new base class for cshtml in asp.net core without using _ViewImports.cshtml and @inherits?
Actually, subject. What you are looking for must be done at the code level, without getting into views, so _ViewImports and @inherited disappear. I know they are more comfortable, but still.
In asp.net mvc it was possible to override MvcWebPageRazorHost and set view parameters in it, it was possible to override RazorBuildProvider and do the same in it. What is similar in asp.net core?
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question