I'm using the standard instructions to compile views at design time, by adding this to my vbproj file:
<MvcBuildViews>true</MvcBuildViews>
But it doesn't seem to do anything. I added a compilation error to a vbhtml file and compiled the app. If the file is open in Visual Studio, I get the compilation error whether MvcBuildViews
is true or false. If the file is closed, I don't get the error, even on full build, even when MvcBuildViews
is true.
This is VS2012, and I've added the MvcBuildViews
entry to every single PropertyGroup in my project file, but still no luck.
What am I doing wrong here?
Update: I just upgraded to VS2013 and I still have the problem.
To be honest I gave up to MvcBuildViews and did a job using RazorGenerator
https://github.com/RazorGenerator/RazorGenerator
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With