I created a project in asp.net mvc4 and installed its View Engine in ASPX. Now I want to change the View Engine to Razor. How to do it? I do not want to create a new project. I want to use an existing project to change the viewing mechanism. Can we change the view mechanism from properties or in some way?
It should be as simple as
ViewEngines.Engines.Clear(); ViewEngines.Engines.Add(new RazorViewEngine());
Add it to Application_Start in global.asax.
Source: https://habr.com/ru/post/1480924/More articles:Doctrine - a one-way bidirectional relation is not allowed - mysqlhow to stop this annoying css behavior - jqueryAny reason why hide () could be called before show ()? - jquerycreating a rectangle from two specific points - javacomplex list and dictionary search in python - pythonMaking system calls (Windows Command Prompt) in English - windowsHow to force default values ββfor INC and LIB to build CPAN (cpanm + perlbrew) - perlAutocomplete with a few keywords - jquerySpaces that appear using CSS: after and: content - htmlIssues with jQuery.width () in IE 8 - jqueryAll Articles