I am creating MVC music store application by reading the PDF, in that on page 22 there is a method shown to add view but when I right clicked on it I am getting the below scr开发者_如何学Ceen:
[Why I am not getting the View Engine Drop Down?]
Razor doesn't work in ASP.NET MVC 2 that's why you are not provided with this choice. You could use Visual Studio 2010 with ASP.NET MVC 3 installed. Only in ASP.NET MVC 3 projects you are provided with this choice.
This is for MVC 3 only. It seems you are using MVC 2.
Install Visual Web Developer Express 2010 as per section:
- File -> New Project
Installing the software
This will give you the IDE used in this tutorial and allow you to view the ASP.Net MVC3 tooling options such as presented in the dialogue box.
精彩评论