My view has errors. I see these errors only if I open the view in Visual Studio.
I would like to see the errors on compile time rather than on execute time.
Does exist a way to obtain this behavior?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You can update by hand the .csproj file and add a
<MvcBuildViews>true</MvcBuildViews>that will compile the views as you go.Here’s a link I googled, you’ll find others as well.
EDIT: If it’s too slow try setting the build only for Release, edit the csproj file doing something like this; see the docs for AspNetCompiler for more details.