如何将 MVC5 添加到 Visual Studio 2013? [英] How to add MVC5 to Visual Studio 2013?

查看:22
本文介绍了如何将 MVC5 添加到 Visual Studio 2013?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在开始一个新项目,想尝试一下 MVC 5(我之前使用 MVC 4 构建了一个 Web 应用程序).

I'm starting a new project, and would like to give a try to MVC 5 (I have built a web app using MVC 4 before).

在 Visual Studio 2013 中,我单击新建项目并导航到 Visual C# > Web > Visual Studio 2012(即使我已经安装了 VS 2013,它在菜单中显示 2012)并且在该列表中我只有 MVC 4 应用程序 -不是 5.

In Visual Studio 2013, I click the New Project and navigate to Visual C# > Web > Visual Studio 2012 (even though I have installed VS 2013 it says 2012 in the menu) and on that list I only have MVC 4 application - not 5.

下拉菜单中的框架设置为 .NET Framework 4.5.1 - 仍然没有.

The framework in the drop down menu is set to .NET Framework 4.5.1 - and still nothing.

我已经检查了工具 > 扩展和更新并搜索了 MVC 5 - 但它没有找到任何来自微软的官方内容.

I've checked Tools > Extensions and Update and searched for MVC 5 - but it doesn't find anything official from Microsoft.

如何将 MVC 5 添加到我的 Visual Studio 2013?

How can I add MVC 5 to my Visual Studio 2013?

谢谢

推荐答案

Visual Studio 2013 不再为不同的 ASP.Net 功能提供单独的项目类型.

Visual Studio 2013 no longer has separate project types for different ASP.Net features.

您必须选择 .NET Framework 4.5(或更高版本)才能查看 ASP.NET Web 应用程序模板(对于 ASP.NET One).
所以只需选择 Visual C# > Web > ASP.NET Web Application,然后在下一步中选中 MVC 复选框.

You must select .NET Framework 4.5 (or higher) in order to see the ASP.NET Web Application template (For ASP.NET One).
So just select Visual C# > Web > ASP.NET Web Application, then select the MVC checkbox in the next step.

注意:确保不要选择 C# > Web > Visual Studio 2012 子文件夹.

Note: Make sure not to select the C# > Web > Visual Studio 2012 sub folder.

这篇关于如何将 MVC5 添加到 Visual Studio 2013?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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