Saturday, September 13, 2008

ASP.NET MVC Build Errors in Views

I have been using the ASP.NET MVC since preview 3 and I ran across something very strange today. I had a few errors in lambda expressions in my view for Html.ActionLink(...). I thought that when I built my project these would be caught and the build would fail.

Well, its not happening for me. If the views aren't getting compiled then the whole SCHWEET reason to have strongly typed stuff in there kinda goes out the window!

Am I missing something? Can other people reproduce this problem? Isn't it intended to fail on the build if there are errors in the view?