如何在 Visual Studio 2015 中创建 MVC 5 项目

问题描述:

当我选择 ASP.NET Web 应用程序模板时,我的模板选择器屏幕如下所示:

When I select ASP.NET Web Application template my template chooser screen looks like this:

ASP.NET 4.6 没有 MVC 模板.4.5 框架版本相同.

There's no MVC template for ASP.NET 4.6. Same for 4.5 Framework versions.

如果您选择 ASP.NET 5 预览模板下的 Web 应用程序,您将拥有一个使用 ASP.NET MVC 的项目,可用于构建 Web 应用程序或 Web API RESTFul 服务.

If you choose the Web Application under the ASP.NET 5 Preview Templates you will have a project that uses ASP.NET MVC and can be used to build Web Applications or Web API RESTFul services.

我有 Visual Studio 2015 Enterprise,这是我看到的:

I do have the Visual Studio 2015 Enterprise, this is what I see:

点击确定按钮后,你将在这个 VS2015 中创建一个 MVC 6 项目

after you click this OK button, you will create a MVC 6 project in this VS2015

您在开始安装时是否选中了Microsoft Web Developer Tool"?

Did you have the "Microsoft Web Developer Tool" checked when you started the installation?