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.
source
share