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

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

问题描述

我想开始使用 Visual Studio 2012 的 ASP.NET MVC 5.我已经安装了ASP.NET And Web Tools 2013 for 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 应用程序(如标准"、Internet"、Intranet"等).我已经看到了 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?

推荐答案

目前"似乎只包含了Empty Project 模板,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.

另请参阅 发布说明

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

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