c# - The view found at was not created when Razor error occurs -
i use mvc4 mono 3.2.3 , notice if create error in razor cshtml file:
@for(int = 0; < 8aaaa; i++)
following error occurs:
system.invalidoperationexception
view 'index' or master not found or no view engine supports searched locations. following locations searched: ...
i remember on windows there's smart razor compilation error message. how enable such feature under mono platform?
related question: mvc5 autofac: view found @ not created
in windows, razor files compiled individually , maybe better support design type error checking.
with mono runtime of .net, views group compiled controller , 1 razor syntax error, none of views under controller compiled. means views don't exist , throw "view not found" error.
i doubt if there setting can behavior on windows .net runtime.
Comments
Post a Comment