ASP.NET MVC 5 - RazorGenerator vs. Publishing Precompile During Publishing

I am currently using VS.NET 2015 with ASP.NET MVC 5 I would like my razor ads to be compiled,

I'm a little confused, and this is the best way to compile my views:

  • RazorGenerator (what benefits does this have?)
  • VS.NET Publishing Wizard "Precompile at Publish Time", do I need to disable "enable site precompiler"? Does this precompile the razor looks?
  • <MvcBuildViews>true</MvcBuildViews>

How do I know if my views are precompiled?

+4
source share
1 answer
  • RazorGenerator ( , ). , , . , . , " ",

  • " " , , " "

  • <MvcBuildViews>true</MvcBuildViews> , , . . .

0

Source: https://habr.com/ru/post/1648723/


All Articles