Precompile the ASP.NET Firewall Files (*. Cshtml)

For the MVC project, there is a property <MvcBuildViews>true</MvcBuildViews>that can be set in the csproj file, see, for example, here . However, this does not affect my project as web pages. Is there a similar switch that I could use?

Note. A typical web page design is of the type "Website", i.e. no csproj. My solution, however, uses web pages in a regular web application project, so I have csproj, everything compiles fine, works fine, I just don't have time to compile my files *.cshtmlthat I would like to add.

+4
source share
1 answer

I think you should take a look at RazorGenerator to realize the soul you need. I'm not sure if it will work with a website project

0
source

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


All Articles