简体   繁体   中英

How to enable MVC 5 Razor template when adding view on VS2013 express

On my VS2012 I can view the MVC 5 Razor template when adding view. See attachment: 在此处输入图片说明

But when I'm using VS2013 express edition I can only see is the MVC 5 View Page Razor. 在此处输入图片说明

I already install everything but the rest razor template is not existing. Help please...

You can use the top-most button in the Add context menu called View... (as can be seen in your second screenshot). There, you can choose from different options (partial/non-partial, use/don't use a layout view), but the option for a layout page is not available there. But you can just create a normal view and name it accordingly I guess.

Remark: My Visual Studio 2013 Premium additionally has the 4 buttons you are missing; I don't have VS2013 Express to check that as well.

Additionally, the context menu Add => View... can also be opened by right-clicking inside an action method in the controller to create a view in the corresponding folder (using a template). So you generally don't have to manually navigate to the Views folder.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM