4

For an MVC project, there is the <MvcBuildViews>true</MvcBuildViews> property that can be set in the csproj file, see e.g. here. However, that has no effect in my Web Pages kind of project. Is there a similar switch that I could use?

Note: Typical Web Pages project is of type "Web Site", i.e. no csproj. My solution, however, uses Web Pages inside a normal Web Application project so I have csproj, it all compiles fine, runs fine, I just don't have any compile-time checking of my *.cshtml files which I'd like to add.

Community
  • 1
  • 1
Borek Bernard
  • 50,745
  • 59
  • 165
  • 240
  • I answered pretty much this exact question yesterday. [VS2013 does not compile ASP.NET MVC5 views](http://stackoverflow.com/questions/28289107/vs2013-does-not-compile-asp-net-mvc5-views) – mason Feb 06 '15 at 15:50

1 Answers1

0

I think you should take a look at the RazorGenerator for implementing the soultion you want. I am not sure if it will work with a Web Site project

ivi.hamiti
  • 552
  • 1
  • 4
  • 7