为Visual Studio 2012 MVC5项目模板 [英] MVC5 project template for Visual Studio 2012

查看:432
本文介绍了为Visual Studio 2012 MVC5项目模板的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想开始使用ASP.NET MVC 5使用Visual Studio 2012年。我已经安装了<一个href=\"http://www.asp.net/visual-studio/overview/2012/aspnet-and-web-tools-20131-for-visual-studio-2012\">ASP.NET和Web Tools 2013的Visual Studio 2012 ,但这个只给了我一个空ASP.NET MVC 5项目模板。

I'd like to get started with ASP.NET MVC 5 using Visual Studio 2012. I've installed the "ASP.NET And Web Tools 2013 for Visual Studio 2012, but this "only" gives me an "Empty ASP.NET MVC 5 Project" template.

有关MVC4 Web项目,我可以选择不同种类的Web应用程序(如标准,互联网,内联网等)。我也看到有截图为Visual Studio 2013类似的选项。

For MVC4 web projects, I can select different kinds of Web applications (like "Standard", "Internet", "Intranet" etc.). And I've seen screenshots with similar options for Visual Studio 2013.

是否有任何项目模板(用于VS2012),这让我对MVC5应用做?

Are there any project templates (for VS2012) which allow me to do the same for MVC5 applications?

推荐答案

看来,目前有只包括空项目模板,MS官方还没有发布VS2012所有其他模板。对于ASP.NET MVC 5可以使用脚手架添加控制器,视图等,这是的WebAPI的模板是一样的。

It seems that "currently" there is only included the Empty Project template, and MS officially hasn't released all other templates for VS2012. For ASP.NET MVC 5 you can use the scafolding to add the Controllers, Views etc. This is the same for WebAPI templates.

ASP.NET MVC 5模板结果
    我们增加了一个新的MVC 5模板。它引用
  最新的MVC 5的NuGet包,您可以使用脚手架添加
  控制器和视图。

ASP.NET MVC 5 template
We added a new MVC 5 template. It references the latest MVC 5 NuGet packages, and you can use scaffolding to add controllers and views.

另请参阅<一个href=\"http://www.asp.net/visual-studio/overview/2012/aspnet-and-web-tools-20131-for-visual-studio-2012\">RELEASE说明

这篇关于为Visual Studio 2012 MVC5项目模板的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆