現在MVC 3 Preview 1在這裏,我們可以使用Razor(.cshtml)視圖引擎。如果沒有找到一個觀點,我得到這個錯誤:如果我不打算使用它們,是否值得去除.aspx/.ascx查找?
The view 'a' or its master was not found. The following locations were searched:
~/Views/Home/a.aspx
~/Views/Home/a.ascx
~/Views/Shared/a.aspx
~/Views/Shared/a.ascx
~/Views/Home/a.cshtml
~/Views/Shared/a.cshtml
難道是值得刪除的.aspx /查找名爲.ascx,如果我不打算使用它們?
在[MVC4跳轉開始視頻(http://channel9.msdn.com/Series/Building-Web-Apps-with-ASP-NET-Jump -Start/Building-Web-Apps-with-ASPNET-Jump-Start-02-Building-and-Deploying-Websites-with-ASPNET-MVC-4),Scott Hanselman說,通過這樣做你可能會取得微小的性能提升。 – DOK 2013-09-27 19:30:27